Struct glean::net::HttpUploader
source · [−]pub struct HttpUploader;
Expand description
A simple mechanism to upload pings over HTTPS.
Trait Implementations
sourceimpl Debug for HttpUploader
impl Debug for HttpUploader
sourceimpl PingUploader for HttpUploader
impl PingUploader for HttpUploader
sourcefn upload(
&self,
url: String,
_body: Vec<u8>,
_headers: Vec<(String, String)>
) -> UploadResult
fn upload(
&self,
url: String,
_body: Vec<u8>,
_headers: Vec<(String, String)>
) -> UploadResult
Uploads a ping to a server.
Arguments
url
- the URL path to upload the data to.body
- the serialized text data to send.headers
- a vector of tuples containing the headers to send with the request, i.e. (Name, Value).
Auto Trait Implementations
impl RefUnwindSafe for HttpUploader
impl Send for HttpUploader
impl Sync for HttpUploader
impl Unpin for HttpUploader
impl UnwindSafe for HttpUploader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more