NetworkSendResult

The outcome of a NetworkSender.send call.

Consumer-constructed via the companion object factories. Lives in :lustro-api so both the release and no-op runtimes can build it. A result is a success when errorMessage is null.

Types

Link copied to clipboard
object Companion

Factories for creating NetworkSendResult instances.

Properties

Link copied to clipboard

The response body bytes, or null if there is no body.

Link copied to clipboard

The Content-Type of the body, or null if absent.

Link copied to clipboard

The failure message, or null when the send succeeded.

Link copied to clipboard

The response headers.

Link copied to clipboard

Whether the send succeeded (i.e. errorMessage is null).

Link copied to clipboard

The HTTP status code, or 0 for a transport failure.