Module http_request

Module http_request 

Source
Expand description

The canister interface for canisters that implement HTTP requests.

Structs§

ArgToken
A marker type to match unconstrained callback arguments
CallbackStrategy
A callback-token pair for a callback streaming strategy.
HeaderField
A key-value pair for a HTTP header.
Headers
A wrapper around an iterator of headers
HttpRequestCanister
A canister that can serve a HTTP request.
HttpRequestStreamingCallback
A callback of type shared query (Token) -> async StreamingCallbackHttpResponse
HttpRequestStreamingCallbackAny
A callback of any type, extremely permissive
HttpResponse
A HTTP response.
StreamingCallbackHttpResponse
The next chunk of a streaming HTTP response.
Token
A token for continuing a callback streaming strategy. This type cannot be serialized despite implementing CandidType

Enums§

StreamingStrategy
Possible strategies for a streaming response.