[−][src]Trait glean::net::PingUploader
A description of a component used to upload pings.
Required methods
pub 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).
Implementors
impl PingUploader for HttpUploader
[src]
pub 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).