pub struct Http {
pub base_url: Option<String>,
pub chat_path: Option<String>,
pub auth_scheme: Option<AuthScheme>,
pub headers: BTreeMap<String, String>,
pub header_merge: ListMerge,
pub aws_service: Option<String>,
pub aws_region: Option<String>,
pub gcp_key_env: Option<String>,
pub read_timeout_secs: Option<u64>,
}Expand description
HTTP request surface (API calls, not the token POST).
Fields§
§base_url: Option<String>https or loopback http.
chat_path: Option<String>Request path, or an absolute URL.
auth_scheme: Option<AuthScheme>How the access token is sent.
headers: BTreeMap<String, String>Extra API headers (after env subst).
header_merge: ListMergeMerge policy for headers.
aws_service: Option<String>When set (bedrock), the HTTP client SigV4-signs the POST.
aws_region: Option<String>Region for SigV4 (us-east-1). {env:AWS_REGION} is allowed.
gcp_key_env: Option<String>Env that holds a GCP service-account JSON path (GOOGLE_APPLICATION_CREDENTIALS).
read_timeout_secs: Option<u64>Idle-read timeout in seconds for API calls. Default 120 when unset.
Trait Implementations§
impl Eq for Http
impl StructuralPartialEq for Http
Auto Trait Implementations§
impl Forget for Http
impl Freeze for Http
impl RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl UnsafeUnpin for Http
impl UnwindSafe for Http
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more