Module mock

Source
Expand description

Mocked types for client-side and server-side APIs.

Structsยง

ClientRequest
A mock implementation of client::HttpRequest which can spawn an HttpBuffer.
HttpBuffer
A writable buffer which stores the boundary and content-length, if provided.
ServerRequest
A mock implementation of server::HttpRequest that can be read.
StdoutTee
A Write adapter that duplicates all data written to the inner writer as well as stdout.