website/docs/ddoc/primitives/handy_http_primitives.respo...

40 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>handy_http_primitives.response (handy_http_primitives.response)</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.response</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>Defines the HTTP response structure and associated types that are generally
used when formulating a response to a client's request.</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="class"><a class="header-anchor" href="#class">Classes</a></h3><dl class="member-list native"><dt><a href="handy_http_primitives.response.HttpStatusException.html">HttpStatusException</a><div class="simplified-prototype" style="max-width: 27ch;"><span class="builtin-type">class</span> <span class="name">HttpStatusException</span></div></dt><dd><div><p>An exception that can be thrown while handling an HTTP request, to indicate
that the server should return a specified response code, usually when you
want to short-circuit due to an error.</p></div></dd></dl><h3 class="member-list-header hide-from-toc" id="enum"><a class="header-anchor" href="#enum">Enums</a></h3><dl class="member-list native"><dt><a href="handy_http_primitives.response.ContentTypes.html">ContentTypes</a><div class="simplified-prototype" style="max-width: 18ch;"><span class="builtin-type">enum</span> <span class="name">ContentTypes</span></div></dt><dd><div><p>Common &quot;Content-Type&quot; header values.</p></div></dd><dt><a href="handy_http_primitives.response.HttpStatus.html">HttpStatus</a><div class="simplified-prototype" style="max-width: 16ch;"><span class="builtin-type">enum</span> <span class="name">HttpStatus</span></div></dt><dd><div><p>An enum defining all valid HTTP response statuses:
See here: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status</a></p></div></dd></dl><h3 class="member-list-header hide-from-toc" id="struct"><a class="header-anchor" href="#struct">Structs</a></h3><dl class="member-list native"><dt><a href="handy_http_primitives.response.ServerHttpResponse.html">ServerHttpResponse</a><div class="simplified-prototype" style="max-width: 27ch;"><span class="builtin-type">struct</span> <span class="name">ServerHttpResponse</span></div></dt><dd><div><p>The response that's sent by a server back to a client after processing the
client's HTTP request.</p></div></dd><dt><a href="handy_http_primitives.response.StatusInfo.html">StatusInfo</a><div class="simplified-prototype" style="max-width: 18ch;"><span class="builtin-type">struct</span> <span class="name">StatusInfo</span></div></dt><dd><div><p>A struct containing basic information about a response status.</p></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 current" href="handy_http_primitives.response.html">response</a></li><li><a class="module" 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>