pub struct PrHttpRequest {
pub method: PrHttpMethod,
pub url: String,
pub headers: BTreeMap<String, String>,
pub authentication: PrHttpAuthentication,
pub max_response_bytes: usize,
pub timeout: Duration,
pub cancellation: CancellationToken,
}Expand description
HTTP request passed to an injected transport.
Fields§
§method: PrHttpMethodRequest method.
url: StringFully validated provider URL.
headers: BTreeMap<String, String>Non-secret request headers.
authentication: PrHttpAuthenticationEphemeral provider authentication sent separately from ordinary headers.
max_response_bytes: usizeMaximum accepted response body size.
timeout: DurationRequest timeout.
cancellation: CancellationTokenCooperative cancellation signal.
Trait Implementations§
Source§impl Clone for PrHttpRequest
impl Clone for PrHttpRequest
Source§fn clone(&self) -> PrHttpRequest
fn clone(&self) -> PrHttpRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PrHttpRequest
impl RefUnwindSafe for PrHttpRequest
impl Send for PrHttpRequest
impl Sync for PrHttpRequest
impl Unpin for PrHttpRequest
impl UnsafeUnpin for PrHttpRequest
impl UnwindSafe for PrHttpRequest
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