React4

Michael Minchang Kim·2020년 5월 19일
0

wecode

목록 보기
19/22

HTTP
http(hypertext transfer protocol) is either a request or response
http is a protocal used to exchange html files
http is stateless so each request doesnt have info on previous exchanges

http request formula

-status line

this section stores the status of the http request. the status line is again split into 3 sections
      -HTTP Method
This section decides what kind of action the request takes Method names like GET, POST, PUT, DELETE, OPTIONS
      -Request target
the target uri where the request is sent to
      -HTTP Version
the version of http that is being used

-headers

info

-body

includes the json file

http response formula

-status line
also 3 sections
      -HTTP version
HTTP/1.1
      -Status code
the code that shows the state of the response. this section is in numbers
for example 200 represents OK 404 represents Not Found
      -Status text
a short text that shows the state represented by the status code

profile
Soon to be the world's Best programmer ;)

0개의 댓글