Request class

Low-level API request.

Constructors

Request(String method, List<String> pathSegments, {Map<String, dynamic>? bodyMap, String? bodyText, Map<String, String>? params})
Creates a new Request object.
factory

Properties

bodyText String?
The body as text.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
The HTTP headers being sent alongside the request.
final
method String
The HTTP method (e.g. 'POST', 'GET', 'DELETE')
final
params Map<String, String>?
The query parameters of the request.
final
pathSegments List<String>
The path segments to the API endpoint.
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