Skip to main content

Crate xbp_http

Crate xbp_http 

Source
Expand description

Shared HTTP request and response helpers for XBP integrations.

RequestFactory centralizes base-URL handling, authentication, default headers, JSON requests, multipart uploads, and binary responses. Provider-specific clients can use these primitives without duplicating response decoding and error extraction.

Structs§

RequestFactory
ResponseBytes

Enums§

AuthStrategy
HttpError

Functions§

extract_cloudflare_error_message
Extracts and formats Cloudflare API errors from a JSON error body.
extract_github_error_message
Extracts a GitHub-style top-level message from a JSON error body.