HttpMethod enum
Http请求类型
Constructors
- HttpMethod(String name)
-
const
Values
- get → const HttpMethod
-
GET请求
const HttpMethod('GET')
- post → const HttpMethod
-
POST请求
const HttpMethod('POST')
- put → const HttpMethod
-
PUT请求
const HttpMethod('PUT')
- delete → const HttpMethod
-
DELETE请求
const HttpMethod('DELETE')
- head → const HttpMethod
-
HEAD请求
const HttpMethod('HEAD')
- patch → const HttpMethod
-
PATCH请求
const HttpMethod('PATCH')
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<
HttpMethod> - A constant List of the values in this enum, in order of their declaration.