Module http

Module http 

Source
Expand description

A HTTP client module for executing HTTP requests in the host runtime. The functions are blocking from the guest, but are run asynchronously in the host. While the request is being executed, the host thread can continue to run other code.

Structs§

HttpRequest
A HTTP request.
HttpResponse
An HTTP response.

Enums§

HttpError
An HTTP error.
HttpMethod
The HTTP method.
HttpVersion
The HTTP version.

Functions§

execute
Executes a single HTTP request in the host runtime.
execute_many
Executes multiple HTTP requests in the host runtime in parallel. Returns results in the same order as the requests.