Default config for server tests. Short lingering timeout, no Date header.
Instances For
Create a fresh mock connection, send raw, and run assertions.
Instances For
Like check but closes the client channel before running the server.
Use for tests involving truncated input or silent-close (EOF-triggered behavior).
Instances For
Like check wrapped in a wall-clock timeout.
Required when the test involves streaming, async timers, or keep-alive behavior.
Instances For
Assert the response is byte-for-byte equal to expected.
Use sparingly — prefer assertStatus + assertContains for 200 responses.
Instances For
Always respond 200 "ok" without reading the request body.
Instances For
Read the full request body and echo it back as text/plain.
Instances For
Respond 200 with the request URI as the body.
Instances For
Minimal GET request. extra is appended as raw header lines (each ending with \x0d\n)
before the blank line.
Instances For
GET with Connection: close.
Instances For
POST with a fixed Content-Length body. extra is appended before the blank line.
Instances For
Format a single chunk: <hex-size>\x0d\n<data>\x0d\n.
Instances For
The terminal zero-chunk that ends a chunked body.