Skip to main content

Module network

Module network 

Source
Expand description

Network Request Interception (Feature 7) Network Request Interception (Feature 7)

Mock API responses and intercept network requests for testing.

§EXTREME TDD: Tests written FIRST per spec

§Toyota Way Application

  • Poka-Yoke: Type-safe route matching prevents invalid patterns
  • Jidoka: Immediate feedback on unexpected requests
  • Muda: Only intercept relevant requests

Structs§

CapturedRequest
A captured network request
MockResponse
A mocked HTTP response
NetworkInterception
Network interception handler
NetworkInterceptionBuilder
Builder for creating network interception
Route
A route definition for interception

Enums§

AbortReason
Reasons for aborting a network request
HttpMethod
HTTP methods for request matching
RouteAction
Action to take when a route matches
UrlPattern
Pattern for matching request URLs