RequestMethod enum Null safety

The valid Http request methods

Inheritance

Constructors

RequestMethod()
const

Values

get → const RequestMethod

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

const RequestMethod(0)

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

const RequestMethod(1)
post → const RequestMethod

The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.

const RequestMethod(2)
put → const RequestMethod

The PUT method replaces all current representations of the target resource with the request payload.

const RequestMethod(3)
delete → const RequestMethod

The DELETE method deletes the specified resource.

const RequestMethod(4)
patch → const RequestMethod

The PATCH method is used to apply partial modifications to a resource.

const RequestMethod(5)
option → const RequestMethod

The OPTIONS method is used to describe the communication options for the target resource.

const RequestMethod(6)
connect → const RequestMethod

The CONNECT method establishes a tunnel to the server identified by the target resource.

const RequestMethod(7)
trace → const RequestMethod

The TRACE method performs a message loop-back test along the path to the target resource.

const RequestMethod(8)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<RequestMethod>
A constant List of the values in this enum, in order of their declaration.
[get, head, post, put, delete, patch, option, connect, trace]