RequestMethods class

HTTP methods.

Constructors

RequestMethods.forName({required String name})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isAllowedPayloadMethod bool
no setter
name String
final
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

allowedPayloadMethods → const List<RequestMethods>
Taken from BaseOptions. The default methods that are considered to have a payload. Only for these methods a default content-type header is added, if no specified.
delete → const RequestMethods
The delete method deletes the specified resource.
get → const RequestMethods
The get method requests a representation of the specified resource. Requests using get should only retrieve data.
The head method asks for a response identical to that of a get request, but without the response body.
patch → const RequestMethods
The patch method is used to apply partial modifications to a resource.
post → const RequestMethods
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 RequestMethods
The put method replaces all current representations of the target resource with the request payload.