Skip to main content

Crate agentkit_http

Crate agentkit_http 

Source
Expand description

HTTP transport trait and request/response types.

Implementors satisfy HttpClient::execute; HttpRequestBuilder and HttpResponse carry the ergonomics (body encoding, header helpers, streaming). Enable the reqwest-client feature (default) for an impl HttpClient for reqwest::Client; disable it to compile trait-only.

Modules§

header
HTTP header types

Structs§

HeaderMap
A specialized multimap for header names and values.
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
Http
Clone-cheap handle over an HttpClient. Methods mirror reqwest::Client.
HttpRequest
HttpRequestBuilder
HttpResponse
Method
The Request Method (VERB)
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Uri
The URI component of a request.

Enums§

HttpError

Traits§

HttpClient
Send a request, return a streaming response.

Type Aliases§

BodyStream
BoxError