본문 바로가기

express

How does HTTP request looks like

'HTTP Request'

GET / HTTP/1.1
Host: erbosoft .com
Connection: keep-alive
Another-Headers

{"aaaUser":{"attributes":{"name":"admin","pwd":"**********"}}}

First line: Request Method, URL, Protocol version

- The request method

- The request target, indicating what is to be operated on.

- The protocol name and version, in this case, "HTTP/1.1"

From Second line to blank line: Request Header

- The HOST, Connection etc. communicates information about the client environment.

The line after the blank line: Requset Body

- This contains the actual request being sent to the HTTP Server.

'express' 카테고리의 다른 글

What should I do with Errors? express.js  (0) 2020.05.17
Error Handling using Promise.  (0) 2020.05.16
How do I do object CRUD?  (0) 2020.05.15
UdemyAPI_Define model schema  (0) 2020.05.13
"Udemy" API by myself  (0) 2020.05.13