Source code
Revision control
Copy as Markdown
Other Tools
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
use crate::net::{PingUploadRequest, PingUploader, UploadResult};
/// A simple mechanism to upload pings over HTTPS.
#[derive(Debug)]
pub struct HttpUploader;
impl PingUploader for HttpUploader {
/// Uploads a ping to a server.
///
/// # Arguments
///
/// * `upload_request` - the requested upload.
fn upload(&self, upload_request: PingUploadRequest) -> UploadResult {
UploadResult::http_status(200)
}
}