Skip to main content

Module testing

Module testing 

Source
Expand description

Small native helpers for synthetic transport tests.

Functionsยง

read_http_request
Read one bounded raw HTTP request from an accepted test socket.
read_http_request_line
Read only a bounded CRLF request line, without waiting for headers or a body.
read_http_request_with_line
Complete a bounded request after read_http_request_line on the same socket.