RequestMethod enum
The valid Http request methods
Constructors
- RequestMethod()
-
const
Values
- get → const RequestMethod
-
The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.
- head → const RequestMethod
-
The HEAD method asks for a response identical to that of a GET request, but without the response body.
- 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.
- put → const RequestMethod
-
The PUT method replaces all current representations of the target resource with the request payload.
- delete → const RequestMethod
-
The DELETE method deletes the specified resource.
- patch → const RequestMethod
-
The PATCH method is used to apply partial modifications to a resource.
- option → const RequestMethod
-
The OPTIONS method is used to describe the communication options for the target resource.
- connect → const RequestMethod
-
The CONNECT method establishes a tunnel to the server identified by the target resource.
- trace → const RequestMethod
-
The TRACE method performs a message loop-back test along the path to the target resource.
Properties
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<
RequestMethod> - A constant List of the values in this enum, in order of their declaration.