Skip to main content

Module http

Module http 

Source
Expand description

HTTP utilities and abstraction for LLM API calls

Structs§

HttpResponse
HTTP response from a non-streaming POST request
ReqwestHttpClient
Default HTTP client backed by reqwest
StreamingHttpResponse
HTTP response from a streaming POST request

Traits§

HttpClient
Abstraction over HTTP POST requests for LLM API calls.

Functions§

default_http_client
Create a default HTTP client