pub struct RequestArgs {
pub url: String,
pub body: Option<Vec<u8>>,
pub retries: u32,
pub headers: Option<HashMap<String, String>>,
pub query_params: Option<HashMap<String, String>>,
pub accept_gzip_response: bool,
pub timeout_ms: u64,
pub is_shutdown: Option<Arc<AtomicBool>>,
pub diagnostics_key: Option<KeyType>,
pub proxy_config: Option<ProxyConfig>,
}
Fields§
§url: String
§body: Option<Vec<u8>>
§retries: u32
§headers: Option<HashMap<String, String>>
§query_params: Option<HashMap<String, String>>
§accept_gzip_response: bool
§timeout_ms: u64
§is_shutdown: Option<Arc<AtomicBool>>
§diagnostics_key: Option<KeyType>
§proxy_config: Option<ProxyConfig>
Implementations§
Source§impl RequestArgs
impl RequestArgs
pub fn new() -> Self
pub fn get_fully_qualified_url(&self) -> String
pub fn populate_headers(&mut self, extra_headers: HashMap<String, String>)
Trait Implementations§
Source§impl Clone for RequestArgs
impl Clone for RequestArgs
Source§fn clone(&self) -> RequestArgs
fn clone(&self) -> RequestArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestArgs
impl RefUnwindSafe for RequestArgs
impl Send for RequestArgs
impl Sync for RequestArgs
impl Unpin for RequestArgs
impl UnwindSafe for RequestArgs
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