HttpPingUploader
public class HttpPingUploader : PingUploader
This class represents a ping uploader via HTTP.
This will typically be invoked by the appropriate scheduling mechanism to upload a ping to the server.
-
Initialize the HTTP Ping uploader from a Glean configuration object
Declaration
Swift
public init() -
Synchronously upload a ping to Mozilla servers.
Declaration
Swift
public func upload( request: CapablePingUploadRequest, callback: @escaping (UploadResult) -> Void )Parameters
requestA
CapablePingUploadRequestcontaining the information needed to perform the uploadcallbackA callback to return the success/failure of the upload to the scheduler
View on GitHub