HTTP란?

김회민·2022년 4월 18일
0

Hyper Text Transfer Protocal

인터넷 상에서 데이터를 주고 받기 위한 서버 / 클라이언트 모델을 따르는 프로토콜

특징

단방향성

클라이언트가 서버로 요청을 보내고 이에 대한 응답을 받음.

비연결성

연결이 계속 유지되지 않고 응답상태가 끝나면 연결을 끊음.

무상태성

클라이언트가 서버와 연결된 상태가 아니기 때문에 상태를 가지지 않음.

클라이언트 요청 (Request)

GET /restapi/v1.0 HTTP/1.1
Accept: application/json
Authorization: Bearer UExBMDFUMDRQV1MwMnzpdvtYYNWMSJ7CL8h0zM6q6a9ntw

서버 응답 (Reponse)

HTTP/1.1 200 OK
Date: Mon, 23 May 2005 22:38:34 GMT
Content-Type: text/html; charset=UTF-8
Content-Encoding: UTF-8
Content-Length: 138
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux)
ETag: "3f80f-1b6-3e1cb03b"
Accept-Ranges: bytes
Connection: close

<html></html>
profile
백엔드 개발자 지망생

0개의 댓글