36 lines
5.7 KiB
HTML
36 lines
5.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>handy_http_primitives.testing (handy_http_primitives.testing)</title>
|
|
<meta charset="utf-8" />
|
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
<link href="style.css" rel="stylesheet" />
|
|
<script src="script.js" type="text/javascript"></script>
|
|
|
|
|
|
<link href="search-results.html" rel="prefetch" />
|
|
</head>
|
|
<body>
|
|
<div id="page-header">
|
|
<div id="logotype">
|
|
<span>Documentation</span>
|
|
<nav>
|
|
<a href="http://dlang.org/">Dlang.org</a>
|
|
</nav>
|
|
</div>
|
|
|
|
<form action="search-docs.html" id="search">
|
|
<input name="searchTerm" placeholder="Find a symbol name..." type="search" />
|
|
<input type="submit" value="Go" />
|
|
</form>
|
|
</div>
|
|
<div id="page-body">
|
|
<div id="page-content">
|
|
<h1>handy_http_primitives.testing</h1><div class="breadcrumbs"><a class="breadcrumb" href="handy_http_primitives.html">handy_http_primitives</a> </div><div><div class="documentation-comment synopsis"><div><p>The testing module defines helper methods for testing your HTTP handling
|
|
code.</p></div></div></div><div class="annotated-prototype"></div><h2 id="members"><a class="header-anchor" href="#members">Members</a></h2><h3 class="member-list-header hide-from-toc" id="function"><a class="header-anchor" href="#function">Functions</a></h3><dl class="member-list native"><dt><a href="handy_http_primitives.testing.assertHasHeader.html">assertHasHeader</a><div class="simplified-prototype" style="max-width: 94ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertHasHeader</span>(ServerHttpResponse response, string header, string expectedValue)</div></dt><dd><div><p>Asserts that the given response has a header with a given value.</p></div></dd><dt><a href="handy_http_primitives.testing.assertStatus.html">assertStatus</a><div class="simplified-prototype" style="max-width: 80ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatus</span>(ServerHttpResponse response, StatusInfo expectedStatus)</div></dt><dd><div><p>Asserts that the given response's status matches an expected status.</p></div></dd><dt><a href="handy_http_primitives.testing.assertStatusBadRequest.html">assertStatusBadRequest</a><div class="simplified-prototype" style="max-width: 61ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatusBadRequest</span>(ServerHttpResponse response)</div></dt><dd><div><span class="undocumented-note">Undocumented in source. Be warned that the author may not have intended to support it.</span></div></dd><dt><a href="handy_http_primitives.testing.assertStatusForbidden.html">assertStatusForbidden</a><div class="simplified-prototype" style="max-width: 60ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatusForbidden</span>(ServerHttpResponse response)</div></dt><dd><div><span class="undocumented-note">Undocumented in source. Be warned that the author may not have intended to support it.</span></div></dd><dt><a href="handy_http_primitives.testing.assertStatusInternalServerError.html">assertStatusInternalServerError</a><div class="simplified-prototype" style="max-width: 71ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatusInternalServerError</span>(ServerHttpResponse response)</div></dt><dd><div><span class="undocumented-note">Undocumented in source. Be warned that the author may not have intended to support it.</span></div></dd><dt><a href="handy_http_primitives.testing.assertStatusNotFound.html">assertStatusNotFound</a><div class="simplified-prototype" style="max-width: 59ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatusNotFound</span>(ServerHttpResponse response)</div></dt><dd><div><span class="undocumented-note">Undocumented in source. Be warned that the author may not have intended to support it.</span></div></dd><dt><a href="handy_http_primitives.testing.assertStatusOk.html">assertStatusOk</a><div class="simplified-prototype" style="max-width: 52ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatusOk</span>(ServerHttpResponse response)</div></dt><dd><div><span class="undocumented-note">Undocumented in source. Be warned that the author may not have intended to support it.</span></div></dd><dt><a href="handy_http_primitives.testing.assertStatusUnauthorized.html">assertStatusUnauthorized</a><div class="simplified-prototype" style="max-width: 63ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">assertStatusUnauthorized</span>(ServerHttpResponse response)</div></dt><dd><div><span class="undocumented-note">Undocumented in source. Be warned that the author may not have intended to support it.</span></div></dd></dl><div></div></div>
|
|
<div id="page-nav"><a class="parent" href="handy_http_primitives.html">handy_http_primitives</a>
|
|
<span class="type-separator">modules</span><ul><li><a class="module" href="handy_http_primitives.address.html">address</a></li><li><a class="module" href="handy_http_primitives.builder.html">builder</a></li><li><a class="module" href="handy_http_primitives.handler.html">handler</a></li><li><a class="module" href="handy_http_primitives.multivalue_map.html">multivalue_map</a></li><li><a class="module" href="handy_http_primitives.optional.html">optional</a></li><li><a class="module" href="handy_http_primitives.request.html">request</a></li><li><a class="module" href="handy_http_primitives.response.html">response</a></li><li><a class="module current" href="handy_http_primitives.testing.html">testing</a></li></ul></div>
|
|
</div>
|
|
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
|
|
</body>
|
|
</html> |