WASIPreview2HttpIncomingRequest class final
Preview2 incoming HTTP request.
Constructors
- WASIPreview2HttpIncomingRequest({required WASIPreview2HttpMethod method, required WASIPreview2HttpFields headers, String? pathWithQuery, WASIPreview2HttpScheme? scheme, String? authority, WASIPreview2HttpIncomingBody? body})
- Creates an incoming request.
Properties
-
Request authority.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → WASIPreview2HttpFields
-
Request headers.
final
- method → WASIPreview2HttpMethod
-
Request method.
final
- pathWithQuery → String?
-
Request path and query.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → WASIPreview2HttpScheme?
-
Request scheme.
final
Methods
-
consume(
) → WASIPreview2HttpIncomingBody? - Consumes the request body on the first call, or null afterwards.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited