Skip to main content

Module http

Module http 

Source
Expand description

HTTP requests, through Extism’s http_request. Hammer allows only the hosts the manifest names under permissions.http, which the user approves at install; a request to any other ends the call.

Structs§

Response

Functions§

form
application/x-www-form-urlencoded form data from its fields.
request
Sends a request and waits for its response. A response of any status is Ok. A request Hammer refuses, such as to a host the manifest does not name, or one with no response, such as on a network that is down, ends the call with Hammer’s error rather than returning.