Struct june_analytics::http::HttpClient
source · pub struct HttpClient { /* private fields */ }Expand description
A client which synchronously sends single messages to the June tracking API.
HttpClient implements Client; see the
documentation for Client for more on how to send events to June.
Implementations§
source§impl HttpClient
impl HttpClient
sourcepub fn new(client: Client, host: String) -> HttpClient
pub fn new(client: Client, host: String) -> HttpClient
Construct a new HttpClient from a reqwest::Client and a Segment API
scheme and host.
If you don’t care to re-use an existing reqwest::Client, you can use
the Default::default value, which will send events to
https://api.june.so.
Trait Implementations§
source§impl Client for HttpClient
impl Client for HttpClient
Auto Trait Implementations§
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl !UnwindSafe for HttpClient
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