1129
내용협상
: 하나의 URL이 여러 가지 리소스 중 적합한 것에 대응되도록 함
트랜스코딩
: HTTP 클라이언트와 서버 사이의 내용 협상에 대한 응답에서 수행됨
클라이언트 주도 기법, 서버 주도 기법, 투명 기법
장점 : 서버 입장에서 가장 구현하기 쉽고, 클라이언트는 최선의 선택 가능
단점
선택지 표현 방법
여러 가지 버전에 대한 링크와 각각에 대한 설명이 담긴 HTML 페이지
300 Multiple Choices
코드로 HTTP/1.1 응답 돌려주기
HTTP/1.1 300 Multiple Choices
Date: Fri, 30 Aug 2024 09:21:48 GMT
Server: Apache/2.4.59 (Unix)
Alternates: {"index.html.en" 1 {type text/html} {language en} {length 48}}, {"index.html.fr" 1 {type text/html} {language fr} {length 45}}
Vary: negotiate,accept-language
TCN: list
Content-Length: 419
Content-Type: text/html; charset=iso-8859-1
<html><head>
<title>300 Multiple Choices</title>
</head><body>
<h1>Multiple Choices</h1>
Available variants:
<ul>
<li><a href="index.html.en">index.html.en</a> , type text/html, language en</li>
<li><a href="index.html.fr">index.html.fr</a> , type text/html, language fr</li>
</ul>
</body></html>
증가된 대기시간, 페이지당 여러번 요청