HttpMethod enum

HTTP Method such as GET or PUT.

Inheritance

Constructors

HttpMethod(String value)
HTTP Method such as GET or PUT.
const

Values

delete → const HttpMethod

DELETE HTTP Method

const HttpMethod('DELETE')
get → const HttpMethod

GET HTTP Method

const HttpMethod('GET')

HEAD HTTP Method

const HttpMethod('HEAD')
options → const HttpMethod

OPTIONS HTTP Method

const HttpMethod('OPTIONS')
patch → const HttpMethod

PATCH HTTP Method

const HttpMethod('PATCH')
post → const HttpMethod

POST HTTP Method

const HttpMethod('POST')
put → const HttpMethod

PUT HTTP Method

const HttpMethod('PUT')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The HTTP method value as a string.
final

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<HttpMethod>
A constant List of the values in this enum, in order of their declaration.