Skip to main content

Enumeration: Methods

Defined in: src/types/http/RequestMethods.ts:10

Enumeration Members

Enumeration MemberValueDescriptionDefined in
ALL"all"Name All Description A Catch all HTTP method.src/types/http/RequestMethods.ts:42
DELETE"delete"Name Delete Description The DELETE HTTP method asks the server to delete a specified resource. See MDN: HTTP Deletesrc/types/http/RequestMethods.ts:35
GET"get"Name Get Description The GET HTTP method requests a representation of the specified resource. Requests using GET should only be used to request data and shouldn't contain a body. See MDN: HTTP Getsrc/types/http/RequestMethods.ts:19
HEAD"head"Name Head Description The HEAD HTTP method requests the metadata of a resource in the form of headers that the server would have sent if the GET method was used instead. This method can be used in cases where a URL might produce a large download, for example, a HEAD request can read the Content-Length header to check the file size before downloading the file with a GET. See MDN: HTTP Headsrc/types/http/RequestMethods.ts:59
OPTIONS"options"Name Options Description The OPTIONS HTTP method requests permitted communication options for a given URL or server. This can be used to test the allowed HTTP methods for a request, or to determine whether a request would succeed when making a CORS preflighted request. A client can specify a URL with this method, or an asterisk (*) to refer to the entire server. See MDN: HTTP Optionssrc/types/http/RequestMethods.ts:69
POST"post"Name Post Description The POST HTTP method sends data to the server. The type of the body of the request is indicated by the Content-Type header. See MDN: HTTP Postsrc/types/http/RequestMethods.ts:27
PUT"put"Name Put Description The PUT HTTP method creates a new resource or replaces a representation of the target resource with the request content. See MDN: HTTP Putsrc/types/http/RequestMethods.ts:50