FusHttpClient

Minimal HTTP client abstraction used by the FUS client to talk to backend services. Implementations should be synchronous.

Functions

Link copied to clipboard
open suspend fun close()

Called when FusClient is closed.

Link copied to clipboard
abstract fun get(url: String): HttpResponse

Sends a GET request to url and returns the response.

Link copied to clipboard
abstract fun lastModified(url: String): Long

Implementations may issue a HEAD request or use other means.

Link copied to clipboard
abstract fun post(url: String, data: String): HttpResponse

Sends a POST request to url with data as payload and returns the response.