HttpMethod

cc.otavia.http.HttpMethod
enum HttpMethod(val bytes: Array[Byte])

The request method of HTTP or its derived protocols, such as RTSP and ICAP.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case CONNECT extends HttpMethod

This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel

This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel

Attributes

case DELETE extends HttpMethod

The DELETE method requests that the origin server delete the resource identified by the Request-URI.

The DELETE method requests that the origin server delete the resource identified by the Request-URI.

Attributes

case GET extends HttpMethod

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. If the Request-URI refers to a data-producing process, it is the produced data which shall be returned as the entity in the response and not the source text of the process, unless that text happens to be the output of the process.

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. If the Request-URI refers to a data-producing process, it is the produced data which shall be returned as the entity in the response and not the source text of the process, unless that text happens to be the output of the process.

Attributes

case HEAD extends HttpMethod

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.

Attributes

case OPTIONS extends HttpMethod

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.

The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.

Attributes

case PATCH extends HttpMethod

The PATCH method requests that a set of changes described in the request entity be applied to the resource identified by the Request-URI.

The PATCH method requests that a set of changes described in the request entity be applied to the resource identified by the Request-URI.

Attributes

case POST extends HttpMethod

The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.

The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.

Attributes

case PUT extends HttpMethod

The PUT method requests that the enclosed entity be stored under the supplied Request-URI.

The PUT method requests that the enclosed entity be stored under the supplied Request-URI.

Attributes

case TRACE extends HttpMethod

The TRACE method is used to invoke a remote, application-layer loop- back of the request message.

The TRACE method is used to invoke a remote, application-layer loop- back of the request message.

Attributes