DebugConfig

Immutable configuration for the Lustro debug runtime.

A value object (deliberately not a data class, to keep the public surface stable and mirrorable by :lustro-noop). Build instances with builder or use DEFAULT. The no-op module accepts and stores every field for API parity with the runtime, but enforces none of them (nothing binds, captures, or serves).

No-op build: the values are accepted and held identically to the runtime, but never used (nothing binds, captures, or serves).

Types

Link copied to clipboard
class Builder

Mutable builder for DebugConfig. Each setter returns this for chaining.

Link copied to clipboard
object Companion

Factories and the DEFAULT configuration.

Properties

Link copied to clipboard

Extra Origins permitted to call the debug API, on any method; the server's own origin is always allowed (other localhost ports are not). Enforced by the :lustro runtime. Default empty.

Link copied to clipboard

Whether Lustro.start may arm the server in a build that is not marked debuggable (honoured by the :lustro runtime). Default false.

Link copied to clipboard

Base URL for the relative URLs of the Send form when the Network tab sends through a senderClient, or null. A sender from OkHttpSender.create has its own base URL instead. Default null.

Link copied to clipboard

The address to bind. Default "127.0.0.1", loopback.

Link copied to clipboard

Whether to fall back to an ephemeral port when serverPort is taken. Default false.

Link copied to clipboard

Total in-memory budget for kept capture bodies, in bytes (enforced by the :lustro runtime). Default 50 MB.

Link copied to clipboard

Maximum bytes captured per request/response body. Default 256 KB.

Link copied to clipboard

Maximum number of retained transactions (ring cap). Default 1000.

Link copied to clipboard

Maximum number of retained WebSocket connections (enforced by the :lustro runtime). Default 100.

Link copied to clipboard

Maximum concurrent in-flight requests (enforced by the :lustro runtime). Default 16.

Link copied to clipboard

Maximum accepted request body size (enforced by the :lustro runtime). Default 1 MB.

Link copied to clipboard

Maximum number of messages and lifecycle events retained per WebSocket connection (enforced by the :lustro runtime). Default 1000.

Link copied to clipboard

Bounded request queue capacity (enforced by the :lustro runtime). Default 64.

Link copied to clipboard

Per-request timeout in milliseconds (enforced by the :lustro runtime). Default 30000.

Link copied to clipboard

The TCP port the debug server binds to. Default 8080.

Link copied to clipboard

Total in-memory budget for WebSocket message payloads, in bytes (enforced by the :lustro runtime). Default 16 MB.