Module proxy_http_fetch

Module proxy_http_fetch 

Source
Expand description

Proxy HTTP fetch action and associated types for the seda_runtime_sdk. These are used to make HTTP requests through the proxy nodes.

Defines JSON-serializable request and the struct ProxyHttpFetchAction and provides, proxy_http_fetch, generate_proxy_http_signing_message for executing proxy HTTP requests, and generating signing messages via VM FFI calls.

Structs§

ProxyHttpFetchAction
An Proxy HTTP fetch action containing the target URL, fetch options, and public key of the proxy. This action is serialized and sent to the VM for execution.

Functions§

generate_proxy_http_signing_message
Generates the message which the data proxy hashed and signed. This can be useful when you need to verify the data proxy signature in the tally phase. With this message there is no need to include the entire request and response data in the execution result.
proxy_http_fetch
Makes an HTTP request through the proxy service