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
request
A
CapablePingUploadRequest
containing the information needed to perform the uploadcallback
A callback to return the success/failure of the upload to the scheduler