11 lines
779 B
Markdown
11 lines
779 B
Markdown
# Testing
|
|
|
|
Handy-Http provides a rich set of utilities to make it easy to test the correctness of your request handling logic.
|
|
|
|
!!! warning
|
|
This page is a work-in-progress.
|
|
|
|
## Request & Response Builders
|
|
|
|
The [Primitives](primitives.md) component provides a [`ServerHttpRequestBuilder`](ddoc/primitives/handy_http_primitives.builder.ServerHttpRequestBuilder.html) and [`ServerHttpResponseBuilder`](ddoc/primitives/handy_http_primitives.builder.ServerHttpResponseBuilder.html) that you can use to set up a mocked request/response context for testing your [`HttpRequestHandler`](ddoc/primitives/handy_http_primitives.handler.HttpRequestHandler.html) implementations. Each builder provides a fluent interface for setting various properties, including input and output streams.
|