HttpMethod

enum HttpMethod

HTTP defines a set of request methods to indicate the desired action to be performed for a given resource.

Entries

POST
Link copied to clipboard

The POST method sends data (stored in the request body) to a server to create or update a given resource.

HEAD
Link copied to clipboard

The HEAD method asks for a response identical to that of a GET request, but without the response body.

GET
Link copied to clipboard

The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.

Functions

toString
Link copied to clipboard
open fun toString(): String
valueOf
Link copied to clipboard
open fun valueOf(name: String): HttpMethod
values
Link copied to clipboard
open fun values(): Array<HttpMethod>