HttpMethod enum
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource.
Values
- GET → const HttpMethod
-
The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.
- HEAD → const HttpMethod
-
The HEAD method asks for a response identical to that of a GET request, but without the response body.
- POST → const HttpMethod
-
The POST method sends data (stored in the request body) to a server to create or update a given resource.
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
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.