Struct glean::net::HttpUploader[][src]

pub struct HttpUploader;

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.