Interface HTTPRequestMethod

HTTP Request Method info

Example

{
"name": "GET",
"description": "The HTTP GET method requests a representation of the specified resource. Requests using GET should only be used to request data (they shouldn't include data). Note: Sending body/payload in a GET request may cause some existing implementations to reject the request — while not prohibited by the specification, the semantics are undefined. It is better to just avoid sending payloads in GET requests.",
"note": "Note: Sending body/payload in a GET request may cause some existing implementations to reject the request — while not prohibited by the specification, the semantics are undefined. It is better to just avoid sending payloads in GET requests.",
"syntax": "GET /index.html",
"link": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET",
"requestHasBody": false,
"successfulResponseHasBody": true,
"safe": true,
"idempotent": true,
"cacheable": true,
"examples": [],
"specifications": [
{
"name": "HTTP Semantics # GET",
"link": "https://httpwg.org/specs/rfc9110.html#GET"
}
],
"browserCompatibility": [
{
"name": "Chrome",
"supported": true,
"version": "Yes"
},
{
"name": "Edge",
"supported": true,
"version": "12"
},
{
"name": "Firefox",
"supported": true,
"version": "Yes"
},
{
"name": "Opera",
"supported": true,
"version": "Yes"
},
{
"name": "Safari",
"supported": true,
"version": "Yes"
},
{
"name": "Chrome Android",
"supported": true,
"version": "Yes"
},
{
"name": "Firefox for Android",
"supported": true,
"version": "Yes"
},
{
"name": "Opera Android",
"supported": true,
"version": "Yes"
},
{
"name": "Safari on iOS",
"supported": true,
"version": "Yes"
},
{
"name": "Samsung Internet",
"supported": true,
"version": "Yes"
},
{
"name": "WebView Android",
"supported": true,
"version": "Yes"
}
]
}

Hierarchy

  • HTTPRequestMethod

Properties

allowedInHtmlForms?: boolean

If the HTTP Request Method is allowed in HTML forms.

MDN - Web forms

browserCompatibility: HTTPRequestMethodBrowserInfo[]

HTTP Request Method features browser compatibility list.

cacheable?: boolean

If the HTTP Request Method is cacheable.

MDN - HTTP Response Cacheable

description?: string

HTTP Request Method description.

examples: string[]

HTTP Request Method examples.

idempotent?: boolean

If the HTTP Request Method is idempotent.

MDN - HTTP Method Idempotent

link?: string

HTTP Request Method documentation link.

name: string

HTTP Request Method name.

note?: string

HTTP Request Method note.

requestHasBody?: boolean

If request has body.

safe?: boolean

If the HTTP Request Method is safe.

MDN - Safe HTTP

HTTP Request Method specifications.

successfulResponseHasBody?: boolean

If successful response has body.

syntax?: string

HTTP Request Method syntax example.

warning?: string

If set, it represents a warning message for this HTTP Request Method.

Generated using TypeDoc