BloomHttpMethod enum
HTTP request method enum for BloomRpcContract definitions.
Defines standard HTTP verbs supported by RESTful and RPC endpoints.
final method = BloomHttpMethod.get;
print(method.value); // 'GET'
Values
- get → const BloomHttpMethod
-
HTTP GET method for retrieving resources without side-effects.
const BloomHttpMethod('GET') - post → const BloomHttpMethod
-
HTTP POST method for creating resources or executing side-effecting operations.
const BloomHttpMethod('POST') - put → const BloomHttpMethod
-
HTTP PUT method for full replacement of a resource.
const BloomHttpMethod('PUT') - patch → const BloomHttpMethod
-
HTTP PATCH method for partial updates to a resource.
const BloomHttpMethod('PATCH') - delete → const BloomHttpMethod
-
HTTP DELETE method for removing a resource.
const BloomHttpMethod('DELETE') - head → const BloomHttpMethod
-
HTTP HEAD method for retrieving response headers without body payload.
const BloomHttpMethod('HEAD') - options → const BloomHttpMethod
-
HTTP OPTIONS method for describing communication options.
const BloomHttpMethod('OPTIONS')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The uppercase HTTP verb string (e.g.
'GET','POST').final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
BloomHttpMethod> - A constant List of the values in this enum, in order of their declaration.