pub struct HttpSource {
pub url: String,
pub proxy: Option<String>,
pub custom_request_headers: Option<Vec<(String, String)>>,
pub should_use_proxy: bool,
pub size_limit_bytes: Option<usize>,
}
Fields§
§url: String
§proxy: Option<String>
§custom_request_headers: Option<Vec<(String, String)>>
§should_use_proxy: bool
§size_limit_bytes: Option<usize>
Implementations§
Source§impl HttpSource
impl HttpSource
pub fn get(&self, c: Client) -> Result<Response>
pub fn set_proxy(&self, cb: ClientBuilder) -> Result<ClientBuilder>
Source§impl HttpSource
impl HttpSource
pub async fn get_async(&self, client: Client) -> Result<Response>
pub fn set_proxy_async( &self, client_builder: ClientBuilder, ) -> Result<ClientBuilder>
Trait Implementations§
Source§impl AsyncSource for HttpSource
impl AsyncSource for HttpSource
Source§impl Clone for HttpSource
impl Clone for HttpSource
Source§fn clone(&self) -> HttpSource
fn clone(&self) -> HttpSource
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 moreSource§impl Debug for HttpSource
impl Debug for HttpSource
Source§impl Default for HttpSource
impl Default for HttpSource
Source§fn default() -> HttpSource
fn default() -> HttpSource
Returns the “default value” for a type. Read more
Source§impl SyncSource for HttpSource
Available on crate feature reqwest
only.
impl SyncSource for HttpSource
Available on crate feature
reqwest
only.Auto Trait Implementations§
impl Freeze for HttpSource
impl RefUnwindSafe for HttpSource
impl Send for HttpSource
impl Sync for HttpSource
impl Unpin for HttpSource
impl UnwindSafe for HttpSource
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