Request class

Constructors

Request(HttpRequest _httpRequest)
request manipulating helper

Properties

client HttpConnectionInfo?
request client info
no setter
contentType ContentType?
request headers content type
no setter
hashCode int
The hash code for this object.
no setterinherited
headers HttpHeaders
HttpRequest headers
no setter
method String
request method
no setter
pathParams Map<String, dynamic>
request path parameters
final
query QueryParameters
request query
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session HttpSession
request session
no setter
uri Uri
request uri
no setter

Methods

body() Future<Uint8List>
Get the body of the request as Uint8List
bodyStream() Stream<Uint8List>
Get the body of the request as Stream of Uint8List.
form([dynamic onContentTypeError()?]) Future<FormData>
covert the form data to FormData class that contains the fields and the files if exist
json() Future
covert request body to json/map it can return map or list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read<T>([Object? tag]) → dynamic
set<T>(dynamic data, [Object? tag]) → void
toString() String
A string representation of this object.
inherited
upgrade({dynamic protocolSelector(List<String>)?, CompressionOptions compression = CompressionOptions.compressionDefault}) Future<WebSocket>
Upgrades a HttpRequest to a WebSocket connection

Operators

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