dream_mock_server/router

router.gleam - Routes for mock server

Defines both streaming and non-streaming endpoints for testing Dream’s HTTP client.

Endpoints

Non-streaming:

Streaming:

Values

pub fn create_router() -> router.Router(
  context.EmptyContext,
  router.EmptyServices,
)

Create a router with all mock endpoints (streaming and non-streaming)

Returns a router configured with all available mock endpoints for testing HTTP clients. Use this router when starting the server programmatically.

Search Document