WASIPreview3HttpRequest class final

Unified Preview3 HTTP request resource.

Constructors

WASIPreview3HttpRequest({required WASIPreview3HttpFields headers, WASIComponentStream<int>? contents, required WASIComponentFuture<WasmComponentValueData> trailers, WASIPreview3HttpRequestOptions? options, WASIComponentFuture<WasmComponentValueData>? transmissionResult, void onDrop()?, WASIPreview3HttpFields takeTrailers(int handle)?})
Creates a request owned by a host or transport.
WASIPreview3HttpRequest.noTrailers({required WASIPreview3HttpFields headers, WASIComponentStream<int>? contents, WASIPreview3HttpRequestOptions? options, void onDrop()?})
Creates a request whose body has no trailers.
factory

Properties

authority ↔ String?
Request authority.
getter/setter pair
contents → WASIComponentStream<int>?
Optional request body stream.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → WASIPreview3HttpFields
Immutable request headers.
final
method ↔ WASIPreview3HttpMethod
Request method, initially GET.
getter/setter pair
options → WASIPreview3HttpRequestOptions?
Immutable transport options.
final
pathWithQuery ↔ String?
Request path and query, or null for an empty target.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheme ↔ WASIPreview3HttpScheme?
Request URI scheme.
getter/setter pair
trailers → WASIComponentFuture<WasmComponentValueData>
Body trailers completion supplied with this request.
final

Methods

cancel() → void
Cancels transport work and releases unconsumed async endpoints.
completeTransmission(WASIPreview3HttpResult<void> result) → void
Completes the future returned by request.new.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readTrailers() → Future<WASIPreview3HttpResult<WASIPreview3HttpFields?>>
Resolves and takes the trailers supplied with this request.
toString() → String
A string representation of this object.
inherited

Operators

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