pub struct Opts {
pub url: Url,
pub headers: Option<HeaderMap<HeaderValue>>,
pub client: Client,
}Expand description
Options for HttpAdapter
Fields§
§url: UrlThe URL of the resource
headers: Option<HeaderMap<HeaderValue>>Additional headers to send with the requests
client: ClientThe client to use for requests. If not set, a new client will be created for each reader, which is wasteful.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Opts
impl !RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl !UnwindSafe for Opts
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