HttpRequest class

Used to describe the HTTP request

Constructors

HttpRequest(Method method, String uri, String httpVersion, Uint8List body, Map<String, String> headers, Map<String, String> parameters)

Properties

body Uint8List
HTTP body of the request
getter/setter pair
cookies Map<String, String>
HTTP Client cookies
getter/setter pair
dynamicPathValue Map<String, String>
HTTP request dynamic path values
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
HTTP request headers
final
httpVersion String
HTTP version of the request
final
json Object?
If the request is in MIME application/json format, the body will be here
getter/setter pair
method Method
Method of the request
final
parameters Map<String, String>
HTTP request parameters
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
If the request is in MIME text format, the body will be here
getter/setter pair
uri String
URI request path
final

Methods

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

Operators

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