Struct noodles_htsget::Client
source · pub struct Client { /* private fields */ }
Expand description
A htsget client.
Implementations§
source§impl Client
impl Client
sourcepub fn new(base_url: Url) -> Self
pub fn new(base_url: Url) -> Self
Creates an htsget client with a default HTTP client.
§Examples
use noodles_htsget as htsget;
let base_url = "https://localhost/".parse()?;
let client = htsget::Client::new(base_url);
sourcepub fn with_http_client(http_client: Client, base_url: Url) -> Self
pub fn with_http_client(http_client: Client, base_url: Url) -> Self
Creates a htsget client with the given HTTP client.
§Examples
use noodles_htsget as htsget;
let http_client = reqwest::Client::new();
let base_url = "https://localhost/".parse()?;
let client = htsget::Client::with_http_client(http_client, base_url);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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