38 lines
3.8 KiB
HTML
38 lines
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>handy_http_transport.helpers (handy_http_transport.helpers)</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_transport.helpers</h1><div class="breadcrumbs"><a class="breadcrumb" href="handy_http_transport.html">handy_http_transport</a> </div><div><div class="documentation-comment synopsis"><div><span class="undocumented-note">Undocumented in source.</span></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_transport.helpers.consumeUntil.html">consumeUntil</a><div class="simplified-prototype" style="max-width: 97ch;"><tt class="highlighted"><span class="hid">Either</span>!(<span class="type">string</span>, <span class="str">"value"</span>, <span class="hid">StreamError</span>, <span class="str">"error"</span>)</tt> <span class="name">consumeUntil</span>(S inputStream, string target)</div></dt><dd><div><p>Helper function to consume string content from an input stream until a
|
|
certain target pattern of characters is encountered.</p></div></dd><dt><a href="handy_http_transport.helpers.indexOf.html">indexOf</a><div class="simplified-prototype" style="max-width: 55ch;"><tt class="highlighted"><span class="hid">ptrdiff_t</span></tt> <span class="name">indexOf</span>(string s, char c, size_t offset)</div></dt><dd><div><p>Internal helper function to get the first index of a character in a string.</p></div></dd><dt><a href="handy_http_transport.helpers.stripSpaces.html">stripSpaces</a><div class="simplified-prototype" style="max-width: 30ch;"><tt class="highlighted"><span class="type">string</span></tt> <span class="name">stripSpaces</span>(string s)</div></dt><dd><div><p>Internal helper function that returns the slice of a string excluding any
|
|
preceding or trailing spaces.</p></div></dd><dt><a href="handy_http_transport.helpers.writeUIntToBuffer.html">writeUIntToBuffer</a><div class="simplified-prototype" style="max-width: 67ch;"><tt class="highlighted"><span class="type">void</span></tt> <span class="name">writeUIntToBuffer</span>(uint value, char[] buffer, size_t idx)</div></dt><dd><div><p>Helper function to append an unsigned integer value to a char buffer. It is
|
|
assumed that there's enough space to write the value.</p></div></dd></dl><div></div></div>
|
|
<div id="page-nav"><a class="parent" href="handy_http_transport.html">handy_http_transport</a>
|
|
<span class="type-separator">modules</span><ul><li><a class="module current" href="handy_http_transport.helpers.html">helpers</a></li><li><a class="module" href="handy_http_transport.http1.html">http1</a></li><li><a class="module" href="handy_http_transport.http2.html">http2</a></li><li><a class="module" href="handy_http_transport.interfaces.html">interfaces</a></li><li><a class="module" href="handy_http_transport.response_output_stream.html">response_output_stream</a></li></ul></div>
|
|
</div>
|
|
<div id="page-footer">Page generated by <a href="https://github.com/adamdruppe/adrdox">adrdox</a></div>
|
|
</body>
|
|
</html> |