Trait glean::net::PingUploader

source ·
pub trait PingUploader: Debug + Send + Sync {
    // Required method
    fn upload(&self, upload_request: PingUploadRequest) -> UploadResult;
}
Expand description

A description of a component used to upload pings.

Required Methods§

source

fn upload(&self, upload_request: PingUploadRequest) -> 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).

Implementors§