HttpMethod enum
HTTP methods understood by routes and server functions.
Values
- get → const HttpMethod
-
Retrieves a resource.
const HttpMethod('GET') - post → const HttpMethod
-
Creates or invokes a resource.
const HttpMethod('POST') - put → const HttpMethod
-
Replaces a resource.
const HttpMethod('PUT') - patch → const HttpMethod
-
Partially updates a resource.
const HttpMethod('PATCH') - delete → const HttpMethod
-
Deletes a resource.
const HttpMethod('DELETE') - options → const HttpMethod
-
Describes supported request options.
const HttpMethod('OPTIONS') - head → const HttpMethod
-
Retrieves response headers without a body.
const HttpMethod('HEAD') - connect → const HttpMethod
-
Opens a network tunnel.
const HttpMethod('CONNECT') - trace → const HttpMethod
-
Echoes a request for diagnostics.
const HttpMethod('TRACE')
Properties
- 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
- wire → String
-
Upper-case wire representation.
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.