Skip to main content

Module server

Module server 

Source
Expand description

Test server spawning and management. HTTP server test utilities

This module provides utilities for testing HTTP servers, including spawning test servers and various test handler implementations.

Structs§

BodyEchoHandler
Test handler that echoes the request body
DelayedHandler
Test handler with configurable delay
EchoPathHandler
Simple test handler that echoes the request path
LargeResponseHandler
Test handler that returns a large response
MethodEchoHandler
Test handler that echoes the request method
RouterHandler
Test handler that returns different responses based on path
StatusCodeHandler
Test handler that returns specific status codes based on path

Functions§

shutdown_test_server
Shuts down a test server gracefully
spawn_test_server
Spawns a test server on a random available port