Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard

Register an additional log writer.

Link copied to clipboard

Completes the builder pattern, returning an immutable config.

Link copied to clipboard

Used to simulate latency: The artificial delay Mockzilla with add to a network request. Value set on individual endpoints takes priority over this value

Link copied to clipboard

Used to simulate latency: The artificial variance in the delay Mockzillaadds to a network request. Used alongside setMeanDelayMillis to calculate the actual artificial delay on each invocation. Set this value to 0 to remove any randomness from the delay.

Link copied to clipboard

Setting this to false will stop Mockzilla from using Bonjour to broadcast itself on the network Note: Broadcast is disabled in release mode regardless of this flag's value

Link copied to clipboard

Enable or disable release mode. See setReleaseModeConfig for more details

Link copied to clipboard

Setting this value to true means the mockzilla server will only accept calls from localhost. Calls from other IPs will be blocked (including blocking the Mockzilla web interface)

Link copied to clipboard

Configures the level of Mockzilla's logging.

Link copied to clipboard

Used to simulate latency: The artificial mean delay Mockzilla with add to a network request.

Link copied to clipboard

Sets the port which the server will bind to. Setting port to 0 will cause the server to choose it's port auto-magically.

Link copied to clipboard

Sets the mockzilla release config.