ParsedBody mixin

Mixin to Context extends default Context additional fields specified for dia_body query - Uri params as ?param=value parsed - x-www-form-urlencoded, json and form-data params from POST/PUT files - uploaded files

Properties

body ↔ dynamic
getter/setter pairinherited
canHijack bool
Whether this request can be hijacked.
no setterinherited
contentType ContentType?
Response Content-type field of headers
getter/setter pairinherited
error ↔ HttpError?
Error if ctxThrow
getter/setter pairinherited
files Map<String, List<UploadedFile>>
Uploaded files
no setter
hashCode int
The hash code for this object.
no setterinherited
headers HttpHeaders
base response HttpHeaders
no setterinherited
parsed Map<String, dynamic>
Parsed body params
no setter
query Map<String, String>
Uri params
no setter
request HttpRequest
base HttpRequest
no setterinherited
response HttpResponse
base HttpResponse
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
Response status code
getter/setter pairinherited

Methods

hijack(void callback(StreamChannel<List<int>>)) → Never
Takes control of the underlying request socket.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String key, String value) → void
Set Response HttpHeaders field key - key of header value - value for key of header
inherited
throwError(int status, {String? message, StackTrace? stackTrace, Exception? exception}) → void
Throw HttpError with status code, message and stackTrace and error
inherited
toString() String
A string representation of this object.
inherited

Operators

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