HttpRequest class final

Represents an HTTP request.

Constructors

HttpRequest({String method = '', String uri = '', List<HttpHeader> headers = const [], Uint8List? body})
HttpRequest.fromJson(Object? j)
factory

Properties

body → Uint8List
The HTTP request body. If the body is not expected, it should be empty.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → List<HttpHeader>
The HTTP request headers. The ordering of the headers is significant. Multiple headers with the same key may present for the request.
final
method → String
The HTTP request method.
final
qualifiedName → String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → String
The HTTP request URI.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String