Struct glean::net::HttpUploader [−][src]
A simple mechanism to upload pings over HTTPS.
Trait Implementations
impl Debug for HttpUploader
[src]
impl PingUploader for HttpUploader
[src]
fn upload(
&self,
url: String,
_body: Vec<u8>,
_headers: Vec<(String, String)>
) -> UploadResult
[src]
&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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,