Request class

Request contains information about HTTP request

Constructors

Request(HttpRequest request)
factory

Properties

body Future<List<int>>
Returns raw body of HTTP request
read-only
certificate X509Certificate
The client certificate of the client making the request [...]
read-only
connectionInfo HttpConnectionInfo
Connection information of the request
read-only
contentLength int
The content length of the request body [...]
read-only
cookies List<Cookie>
The cookies in the request, from the Cookie headers.
read-only
headers HttpHeaders
The request headers.
read-only
method String
The method, such as 'GET' or 'POST', for the request.
read-only
persistentConnection bool
The persistent connection state signaled by the client
read-only
protocolVersion String
The HTTP protocol version used in the request, either "1.0" or "1.1".
read-only
requestedUri Uri
The requested URI for the request [...]
read-only
upgradeToWebSocket Future<WebSocket>
Upgrades the request to a websocket request and returns the websocket
read-only
uri Uri
The URI for the request [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited