nemoguardrails.http.client
Protocols implemented by transport-neutral asynchronous HTTP clients.
Module Contents
Classes
API
Protocol
Bases: HTTPClient
An HTTP client that exposes asynchronous resource cleanup.
async
Release resources owned by the client.
Implementations must make repeated calls safe.
Protocol
Send asynchronous HTTP requests without exposing transport-specific types.
async
Send one request and return a response whose content is fully owned.
Parameters:
method
HTTP method, case-insensitive.
url
Absolute request URL.
headers
Optional request headers.
params
Optional query parameters.
json
Optional JSON-serializable request body.
content
Optional raw request body.
timeout
Optional total request timeout in seconds.
Returns: HTTPResponse
A transport-neutral response containing materialized body bytes.