HttpRequestMethod enum

Enumerated value for indicating HttpRequestMethod.

Inheritance
Available extensions

Values

GET → const HttpRequestMethod

Make 'GET' request.

It is one of the only two methods that allows to make request without apply body content.

const HttpRequestMethod(false)
POST → const HttpRequestMethod

Make 'POST' request.

const HttpRequestMethod(true)
PUT → const HttpRequestMethod

Make 'PUT' request.

const HttpRequestMethod(true)
DELETE → const HttpRequestMethod

Make 'DELETE' request.

const HttpRequestMethod(true)

Make 'HEAD' request.

It is one of the only two methods that allows to make request without apply body content.

const HttpRequestMethod(false)
PATCH → const HttpRequestMethod

Make 'PATCH' request.

const HttpRequestMethod(true)

Properties

bodyRequired → bool
Determine the body content is mandatory for given request method.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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<HttpRequestMethod>
A constant List of the values in this enum, in order of their declaration.