/
HTTP μš”μ²­κ³Ό 응닡

HTTP μš”μ²­κ³Ό 응닡

μš”μ²­ λ©”μ‹œμ§€



μ„œλΈ”λ¦Ώκ΄€λ ¨ μŠ€ν”„λ§ MVC μ• λ…Έν…Œμ΄μ…˜
μ‹œμž‘μ€„
  • λ©”μ„œλ“œ
  • μš”μ²­URL
  • 버전
  • javax.servlet.http.HttpServletRequest.getMethod()
  • javax.servlet.http.HttpServletRequest.getRequestURI()
  • javax.servlet.ServletRequest.getProtocol()
  • @RequestMapping
  • @PathVariable
헀더
  • 헀더
  • javax.servlet.http.HttpServletRequest.getHeader(String)
  • @RequestHeader
λ³Έλ¬Έ
  • λ³Έλ¬Έ
  • avax.servlet.ServletRequest.getReader()
  • javax.servlet.ServletRequest.getInputStream()
  • javax.servlet.http.HttpServletRequest.getPart(String)Β 
  • @RequestBody
  • @RequestPart
μš”μ²­
νŒŒλΌλ―Έν„°
  • 헀더
  • λ³Έλ¬Έ
  • javax.servlet.ServletRequest.getParameter(String)
  • @RequestParam
  • @ModelAttribute

응닡 λ©”μ‹œμ§€



μ„œλΈ”λ¦Ώκ΄€λ ¨ μŠ€ν”„λ§ MVC μ• λ…Έν…Œμ΄μ…˜
μ‹œμž‘μ€„
  • 버전
  • μƒνƒœμ½”λ“œ
  • μ‚¬μœ κ΅¬μ ˆ
  • ---
  • javax.servlet.http.HttpServletResponse.setStatus(int)
  • javax.servlet.http.HttpServletResponse.sendError(int, String)
  • @ResponseStatus
헀더
  • 헀더
  • javax.servlet.http.HttpServletResponse.setHeader(String, String)
  • ---
λ³Έλ¬Έ
  • λ³Έλ¬Έ
  • javax.servlet.ServletResponse.getWriter()
  • javax.servlet.ServletResponse.getOutputStream()
  • @ResponseBody