Trait glean::net::PingUploader

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

A description of a component used to upload pings.

Required Methods§

Uploads a ping to a server.

  • 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).