9 (Method Definitions).
HTTP/1.1 . , , , .
Host ( 14.23) HTTP/1.1 .
9.1 Idempotent .
9.1.1 .
, , , , .
, GET HEAD , . "". , POST, PUT DELETE, , , .
, , GET; , . , , , , .
9.1.2 Idempotent .
"idempotence" , N > 0 , ( ). GET, HEAD, PUT DELETE .
9.2 OPTIONS.
OPTIONS , /, URI (Request-URI). / , , , .
- , , , ( Allow - , Content-Type - ). .
URI (Request-URI) - ("*"), OPTIONS . - 200, , , (, Public), , , (response-header). 5.1.2, "OPTIONS *" - URI (Request-URI) .
URI (Request-URI) ("*"), OPTIONS , . - 200, , , (, Allow), , , (response-header). OPTIONS -, , , -.
9.3 GET.
GET ( ), URI (Request-URI). URI (Request-URI) , , , , .
" GET" ("conditional GET"), If-Modified-Since, If-Unmodified-Since, If-Match, If-None-Match, If-Range. GET , , . GET , , .
" GET" ("partial GET"), Range. GET , 14.36. GET , , , .
GET , HTTP , 13.
9.4 HEAD.
HEAD GET, , (message-body). , HTTP HEAD , GET. (entity-body). , , .
HEAD , , . , ( , Content-Length, Content-MD5, ETag Last-Modified), .
9.5 POST.
POST , , , , URI (Request-URI) (Request-Line). POST , :
- ;
- (bulletin board), (newsgroup), (mailing list), ;
- , , ;
- (append operation).
, POST, URI (Request-URI). , POST, URI , , , (newsgroup), , .
, POST , URI. , , , , , 200 (OK), 204 ( , No Content).
, 201 (, Created) , , Location ( 14.30).
, Cache-Control Expires. , 303 ( , See Other) .
POST , 8.2.
9.6 PUT.
PUT, , URI (Request-URI). Request-URI , , . Request-URI , , URI. , 201 (, Created). , 200 (OK), 204 ( , No Content). URI (Request-URI), , . Content-* ( Content-Range), , 501 ( , Not Implemented).
URI (Request-URI) , . .
POST PUT , URI (Request-URI). URI POST , . , , , , (accepts annotations). , URI PUT , - URI , . URI, 301 ( , Moved Permanently); .
URI. , URI " ", URI, . , PUT URI (may result) URI, .
HTTP/1.1 PUT .
PUT , 8.2.
9.7 DELETE.
DELETE , URI (Request-URI). ( ) . , , , , . , , .
200 (OK), , , 202 (, Accepted), , 204 ( , No Content), (OK), .
URI (Request-URI) , . .
9.8 TRACE.
TRACE . 200 (OK). , -, , (0) Max-Forwards (. 14.31). TRACE .
TRACE , . Via ( 14.44) , . Max-Forwards , -, .
, (entity-body), Content-Type "message/http". .