android-components / mozilla.components.service.glean.net / ConceptFetchHttpUploader

ConceptFetchHttpUploader

class ConceptFetchHttpUploader : PingUploader (source)

A simple ping Uploader, which implements a “send once” policy, never storing or attempting to send the ping again. This uses Android Component’s concept-fetch.

Constructors

Name Summary
<init> ConceptFetchHttpUploader(client: Lazy<Client>)
A simple ping Uploader, which implements a “send once” policy, never storing or attempting to send the ping again. This uses Android Component’s concept-fetch.

Functions

Name Summary
upload fun upload(url: String, data: String, headers: HeadersList): Boolean
Synchronously upload a ping to a server.

Companion Object Properties

Name Summary
DEFAULT_CONNECTION_TIMEOUT const val DEFAULT_CONNECTION_TIMEOUT: Long
DEFAULT_READ_TIMEOUT const val DEFAULT_READ_TIMEOUT: Long

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.