I Top 9 HTTP Request Methods � ByteByteGo
GET PUT POST
(GET /v1/products/iphone) POST /v1/users
Response
<HTML>
<HEAD>iphone</HEAD>
<BODY>
<H1>iPhone 14</H1>
Response
<P>This is an iPhone 14</P>
</BODY> Response
</HTML>
HTTP/1.1 OK HTTP/1.1 Created
Retrieve a single item
or a Iist of items
( Update an item
J ( Create an item
J
DELETE PATCH HEAD
( DELETE /v1/users/123 ) ( PATCH /v1/users/123 HEAD /v1/products/iphone
Response Request Body
{
"email": bob@bytebytego.com
HTTP/1.1 OK }
HTTP/1.1 NO CONTENT
Response
HTTP/1.1 OK
e ete an item
[____o_ _i _ _ _ _ _ ___ J Partially modify an item
Identical to GET but no
message body in the response
� �
CONNECT OPTIONS TRACE
( CONNECT xxx.com:80 ) TRACE /index.html
Request
Host: xxx: 80
Proxy-Authorization: basic
RXhhbXBsZTphaQ==
Response
HTTP/1.1 OK
r
r
Perform a message loop-
"
Return a list of supported
r "'
Create a two-way connection back test,providing a
with a proxy server HTTP methods debugging mechanism
\.. � .J