HttpMethod enum

Http请求类型

Inheritance

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')
patch → const HttpMethod

PATCH请求

const HttpMethod('PATCH')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
对应的http方法名称
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

values → const List<HttpMethod>
A constant List of the values in this enum, in order of their declaration.