pub struct HeaderUtils;
Expand description
Header management utilities
Implementations§
Source§impl HeaderUtils
impl HeaderUtils
Sourcepub fn standard_headers(api_key: &ApiKey) -> HeaderMap
pub fn standard_headers(api_key: &ApiKey) -> HeaderMap
Create standard VirusTotal headers
Sourcepub fn add_custom_headers(
headers: &mut HeaderMap,
custom: &HashMap<String, String>,
)
pub fn add_custom_headers( headers: &mut HeaderMap, custom: &HashMap<String, String>, )
Add custom headers to existing header map
Sourcepub fn extract_rate_limit_info(headers: &HeaderMap) -> Option<RateLimitStatus>
pub fn extract_rate_limit_info(headers: &HeaderMap) -> Option<RateLimitStatus>
Extract rate limit information from response headers
Auto Trait Implementations§
impl Freeze for HeaderUtils
impl RefUnwindSafe for HeaderUtils
impl Send for HeaderUtils
impl Sync for HeaderUtils
impl Unpin for HeaderUtils
impl UnwindSafe for HeaderUtils
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