Expand description
A module for executing HTTP requests using a client that operates within the host runtime. Functions are synchronous from the guest’s perspective, yet they run asynchronously on the host side. While waiting for request completion, the host thread can execute other tasks concurrently.
Structs§
- Batch
Http Request - A structure representing a batch of HTTP requests.
- Http
Request - A struct that represents an HTTP request.
- Http
Request Builder - A builder for constructing an
HttpRequest. - Http
Response - A struct that represents an HTTP response.
- Json
Deserialize Error - This type represents all possible errors that can occur when serializing or deserializing JSON data.
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Url
- A parsed URL record.
Enums§
- Http
Error - An HTTP error.
- Http
Method - The HTTP method.
- Http
Version - The HTTP version.
Functions§
- execute
- Executes a single HTTP request and returns a result containing either an
HttpResponseor anHttpError. - execute_
many - Executes multiple HTTP requests in a batch and returns their results.