Package org.mockserver.mock.action.http
package org.mockserver.mock.action.http
-
ClassDescriptionInstalled after a WebSocket handshake when the HttpWebSocketResponse has matchers.Callback interface for sending response frames to the client.Safety circuit-breaker for service-scoped chaos: when the number of error-class chaos faults (5xx synthetic errors, dropped connections, and quota-limit responses) within a configurable sliding window exceeds a threshold, all active service-scoped chaos profiles are automatically halted (disabled) via
ServiceChaosRegistry.reset().Orchestrates scheduled multi-stage chaos experiments.An experiment definition: name, ordered stages, whether to loop, and an optional deferred start (startDelayMillisand/orcronSchedule).Snapshot of the current experiment status.A single stage: profiles to apply to specific hosts for a duration.Persisted, named library of reusable chaos experiment profiles.Per-upstream circuit breaker for forwarded/proxied requests.Stateless retry logic for forwarded/proxied requests.Handles the graphql-transport-ws protocol over an already-established WebSocket connection.Callback interface for sending text frames to the client, with optional delay support.Evaluates aGrpcChaosProfileagainst the current request context (match count, quota state) and decides whether to inject a gRPC fault.The outcome of a gRPC chaos fault decision.Process-wide registry of gRPC chaos profiles, keyed by gRPC service name.Applies anHttpErroraction to the underlying Netty channel: writes raw response bytes, resets the request stream (HTTP/2 RST_STREAM, written here; HTTP/3 RESET_STREAM, handled by the HTTP/3 response writer seam in mockserver-netty), and/or drops the connection.Handles forward-with-fallback actions: forwards the request to the upstream host defined by theHttpForward; if the upstream returns a status code matching the fallback criteria (default 500-599) or the request times out / fails to connect, the configured fallbackHttpResponseis returned instead.Process-wide, stateful request quota for HTTP chaos — a fixed-window rate limiter, the HTTP counterpart ofLlmQuotaRegistry.Cost-budget circuit-breaker for LLM forwarding.Orchestrates an in-process API-driven load scenario.Immutable snapshot of a load scenario's progress, serialized by the GET endpoint.Persisted, named registry of load scenario definitions.Process-wide state machine for a simulated server preemption (node drain / Spot reclamation / pre-SIGTERM): whenPreemptionSimulator.start(PreemptionRequest)is called the server becomes cordoned — new data-plane exchanges are turned away (503 + Connection: close on HTTP/1.1, GOAWAY on HTTP/2, perPreemptionRequest.Mode) while in-flight requests are allowed to drain for a bounded window.Node-local, stateful per-key attempt counter for theRecoverAfterrecovery primitive.Process-wide registry of service-scoped HTTP chaos profiles, keyed by upstream host.Process-wide registry of TCP-layer chaos profiles, keyed by host.