Request class
A generic JSON:API request.
Constructors
- Request(String method, [Object? document])
-
Creates a new instance if the request with the specified HTTP
method
anddocument
. - Request.delete([Object? document])
- Creates a DELETE request.
- Request.get()
- Creates a GET request.
- Request.patch([Object? document])
- Creates a PATCH request.
- Request.post([Object? document])
- Creates a POST request.
Properties
- document → Object?
-
JSON:API document. This object can be of any type as long as it is
encodable by the
PayloadCodec
used in the Client.final - hashCode → int
-
The hash code for this object.
no setterinherited
- headers → Headers
-
HTTP headers.
final
- method → String
-
HTTP method.
final
- query → Query
-
Query parameters.
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