HttpMethod enum

HTTP methods

This enum contains all the HTTP methods that can be used in a request

Inheritance
Available extensions

Values

get → const HttpMethod

The GET method requests a representation of the specified resource.

post → const HttpMethod

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.

delete → const HttpMethod

The DELETE method deletes the specified resource.

put → const HttpMethod

The PUT method replaces all current representations of the target resource with the request payload.

patch → const HttpMethod

The PATCH method is used to apply partial modifications to a resource.

The HEAD method asks for a response identical to that of a GET request, but without the response body.

options → const HttpMethod

The OPTIONS method is used to describe the communication options for the target resource.

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns the string representation of the method
override

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.