Skip to main content

Module http

Module http 

Source
Expand description

HTTP client primitives.

GET, POST, and HTML-to-text fetching built on reqwest.

Structs§

HttpOptions
Options for HTTP requests.
HttpResponse
HTTP response.

Enums§

HttpError
HTTP errors.

Functions§

fetch_html
Fetch a URL and convert HTML to readable plain text. Non-HTML content is returned as-is. Truncated to max_chars.
get
Send a GET request.
post
Send a POST request with a string body.