OkHttpSender

The default NetworkSender, backed by an OkHttp OkHttpClient (no-op build).

Mirrors the :lustro OkHttpSender signature so consumer code compiles unchanged, but send never issues a network call: it always returns a failure result. The client is accepted for API parity but never used, and a client provider is never called.

Constructors

Link copied to clipboard
constructor(client: OkHttpClient)

Creates a sender named "Default"; the no-op build never uses client.

Types

Link copied to clipboard
object Companion

Factories for OkHttpSender.

Properties

Link copied to clipboard

The URL that a relative URL in the Send form resolves against, or null when this sender takes absolute URLs only. For a sender created with a baseUrlProvider, each read calls the provider.

Link copied to clipboard

The name that the Send form lists this sender under. Unique within a tab.

Functions

Link copied to clipboard
open override fun send(request: NetworkSendRequest): NetworkSendResult

Returns a failure result; the no-op build never sends anything.