Trait glean::net::PingUploader[][src]

pub trait PingUploader: Debug + Send + Sync {
    fn upload(
        &self,
        url: String,
        body: Vec<u8>,
        headers: Vec<(String, String)>
    ) -> UploadResult; }

A description of a component used to upload pings.

Required methods

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).
Loading content...

Implementors

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).
Loading content...