HTTP Method Reference

Komprehensibong gabay na sanggunian para sa lahat ng HTTP method na may mga katangian, gamit, at karaniwang status code

Lahat ng proseso ay nangyayari sa iyong browser. Walang data na ina-upload.
Offline Ready

HTTP Method Reference

Komprehensibong gabay na sanggunian para sa lahat ng HTTP method na may mga katangian, gamit, at karaniwang status code

🔒Lahat ng proseso ay nangyayari sa iyong browser. Walang data na ina-upload.
Maghanap ayon sa pangalan ng method, paglalarawan, o gamit...
Mabilis na Paghahambing
MethodSafeIdempotentCacheableRequest BodyResponse Body
GET
OoOoOoOpsyonalOo
HEAD
OoOoOoOpsyonalNo
POST
NoNoNoOoOo
PUT
NoOoNoOoOpsyonal
PATCH
NoNoNoOoOo
DELETE
NoOoNoOpsyonalOpsyonal
OPTIONS
OoOoNoOpsyonalOo
TRACE
OoOoNoNoOo
CONNECT
NoNoNoNoOo
Mga Detalye ng Method
GET
Retrieve a representation of the specified resource. GET requests should only retrieve data.
HEAD
Same as GET, but the server must not return a message body in the response.
POST
Submit data to the specified resource, often causing a change in state or side effects on the server.
PUT
Replace the entire target resource with the request payload.
PATCH
Apply partial modifications to a resource.
DELETE
Remove the specified resource from the server.
OPTIONS
Describe the communication options for the target resource.
TRACE
Perform a message loop-back test along the path to the target resource.
CONNECT
Establish a tunnel to the server identified by the target resource.
Mga Kahulugan ng Katangian
Safe:Ang isang method ay safe kung hindi nito binabago ang estado ng server. Sa madaling salita, ang isang method ay safe kung ito ay humahantong sa read-only operation. Ang mga safe method ay maaaring i-cache at i-prefetch nang walang panganib.
Idempotent:Ang isang method ay idempotent kung ang layuning epekto sa server ng paggawa ng isang request ay pareho sa epekto ng paggawa ng ilang magkakaparehong request. Lahat ng safe method ay idempotent, pati na rin ang PUT at DELETE.
Cacheable:Ang isang cacheable response ay isang HTTP response na maaaring i-cache para magamit muli sa mga kasunod na request. Ang mga GET at HEAD response ay karaniwang cacheable.