PingUploader

public protocol PingUploader

The interface defining how to send pings.

  • Synchronously upload a ping to a server.

    @param request the ping upload request, locked within a uploader capability check

    @param callback used to return the status code of the upload response, so Glean knows whether or not to try again

    Declaration

    Swift

    func upload(
        request: CapablePingUploadRequest,
        callback: @escaping (UploadResult) -> Void
    )