Expand description
The HTTP module contains types for representing HTTP requests and responses in Rust. These types are Candid-encodable and are used by canisters that implement the HTTP interface required by the HTTP Gateway Protocol.
Structs§
- Http
Request - A Candid-encodable representation of an HTTP request. This struct is used by
the
http_requestmethod of the HTTP Gateway Protocol’s Candid interface. - Http
Request Builder - An HTTP request builder.
- Http
Response - A Candid-encodable representation of an HTTP response. This struct is used
by the
http_requestmethod of the HTTP Gateway Protocol’s Candid interface. - Http
Response Builder - An HTTP response builder.
- Http
Update Request - A Candid-encodable representation of an HTTP update request. This struct is
used by the
http_update_requestmethod of the HTTP Gateway Protocol. - Http
Update Response - A Candid-encodable representation of an HTTP update response. This struct is used
by the
http_update_requestmethod of the HTTP Gateway Protocol. - Method
- The Request Method (VERB)
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).
Type Aliases§
- Header
Field - An HTTP header field, represented as a tuple of (name, value).