Package-level declarations

Types

Link copied to clipboard
interface Backend
Link copied to clipboard
Link copied to clipboard
data class ClientSettings(var timeout: UInt, var redirectLimit: UInt, var ohttpChannel: String?)
Link copied to clipboard
interface Disposable
Link copied to clipboard
typealias FfiConverterTypeHeaders = FfiConverterMapStringString
Link copied to clipboard
typealias FfiConverterTypeViaductUrl = FfiConverterString
Link copied to clipboard
typealias Headers = Map<String, String>

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard
Link copied to clipboard
enum Method : Enum<Method>

HTTP Methods.

Link copied to clipboard
data class OhttpConfig(var relayUrl: String, var gatewayHost: String)

Configuration for an OHTTP channel

Link copied to clipboard
data class Request(var method: Method, var url: ViaductUrl, var headers: Headers, var body: ByteArray?)
Link copied to clipboard
data class Response(var requestMethod: Method, var url: ViaductUrl, var status: UShort, var headers: Headers, var body: ByteArray)

A response from the server.

Link copied to clipboard
Link copied to clipboard
typealias ViaductUrl = String

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Functions

Link copied to clipboard

Allow non-HTTPS requests to the emulator loopback URL

Link copied to clipboard

Clear all OHTTP channel configurations

Link copied to clipboard

Configure default OHTTP channels for common Mozilla services This sets up:

Link copied to clipboard

Configure an OHTTP channel with the given configuration If an existing OHTTP config exists with the same name, it will be overwritten

Link copied to clipboard
fun initBackend(backend: Backend)
Link copied to clipboard

List all configured OHTTP channels

Link copied to clipboard
fun uniffiForeignFutureHandleCount(): <Error class: unknown class>