Module http

Module http 

Source
Expand description

HTTP fetch action and associated types for the seda_runtime_sdk.

Defines JSON-serializable request and response structs (HttpFetchAction, HttpFetchOptions, HttpFetchResponse) and provides http_fetch for executing HTTP requests via VM FFI calls.

Structs§

HttpFetchAction
An HTTP fetch action containing the target URL and fetch options. This action is serialized and sent to the VM for execution.
HttpFetchOptions
Options for the HTTP fetch request, including method, headers, body, and timeout. This struct is serialized and sent to the VM for execution.
HttpFetchResponse
Represents the response from an HTTP fetch request. This struct is serialized and the result is returned to the caller.

Enums§

HttpFetchMethod
Represents the HTTP methods that can be used in an HTTP fetch request. This enum is serialized and sent to the VM for execution. It represents the various HTTP methods that can be used in an HTTP fetch request.

Functions§

http_fetch
Performs an HTTP fetch request with the given URL and options. This wraps the unsafe FFI call to the VM’s http_fetch function.