123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <!-- This file is generated by Nim. -->
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- Favicon -->
- <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
- <link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
- <!-- Google fonts -->
- <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
- <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
- <!-- CSS -->
- <title>Index</title>
- <link rel="stylesheet" type="text/css" href="nimdoc.out.css">
- <script type="text/javascript" src="dochack.js"></script>
- <script type="text/javascript">
- function main() {
- var pragmaDots = document.getElementsByClassName("pragmadots");
- for (var i = 0; i < pragmaDots.length; i++) {
- pragmaDots[i].onclick = function(event) {
- // Hide tease
- event.target.parentNode.style.display = "none";
- // Show actual
- event.target.parentNode.nextElementSibling.style.display = "inline";
- }
- }
- const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
- function switchTheme(e) {
- if (e.target.checked) {
- document.documentElement.setAttribute('data-theme', 'dark');
- localStorage.setItem('theme', 'dark');
- } else {
- document.documentElement.setAttribute('data-theme', 'light');
- localStorage.setItem('theme', 'light');
- }
- }
- toggleSwitch.addEventListener('change', switchTheme, false);
- const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
- if (currentTheme) {
- document.documentElement.setAttribute('data-theme', currentTheme);
- if (currentTheme === 'dark') {
- toggleSwitch.checked = true;
- }
- }
- }
- </script>
- </head>
- <body onload="main()">
- <div class="document" id="documentId">
- <div class="container">
- <h1 class="title">Index</h1>
- Modules: <a href="akane.html">akane</a>.<br/><p /><h2>API symbols</h2>
- <dl><dt><a name="answer" href="#answer"><span>answer:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: answer(request, message: untyped; http_code = Http200;
- headers: HttpHeaders = newHttpHeaders()): untyped" href="akane.html#answer.m%2Cuntyped%2Cuntyped%2CHttpHeaders">akane: answer(request, message: untyped; http_code = Http200;
- headers: HttpHeaders = newHttpHeaders()): untyped</a></li>
- </ul></dd>
- <dt><a name="AnyHttpMethod" href="#AnyHttpMethod"><span>AnyHttpMethod:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: AnyHttpMethod" href="akane.html#AnyHttpMethod">akane: AnyHttpMethod</a></li>
- </ul></dd>
- <dt><a name="BaseHttpMethod" href="#BaseHttpMethod"><span>BaseHttpMethod:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: BaseHttpMethod" href="akane.html#BaseHttpMethod">akane: BaseHttpMethod</a></li>
- </ul></dd>
- <dt><a name="error" href="#error"><span>error:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: error(request, message: untyped; http_code = Http404;
- headers: HttpHeaders = newHttpHeaders()): untyped" href="akane.html#error.m%2Cuntyped%2Cuntyped%2CHttpHeaders">akane: error(request, message: untyped; http_code = Http404;
- headers: HttpHeaders = newHttpHeaders()): untyped</a></li>
- </ul></dd>
- <dt><a name="loadtemplate" href="#loadtemplate"><span>loadtemplate:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: loadtemplate(name: string; json: JsonNode = %*{}): Future[string]" href="akane.html#loadtemplate%2Cstring%2CJsonNode">akane: loadtemplate(name: string; json: JsonNode = %*{}): Future[string]</a></li>
- </ul></dd>
- <dt><a name="newCookie" href="#newCookie"><span>newCookie:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: newCookie(server: ServerRef; key, value: string; domain = ""): HttpHeaders" href="akane.html#newCookie%2CServerRef%2Cstring%2Cstring%2Cstring">akane: newCookie(server: ServerRef; key, value: string; domain = ""): HttpHeaders</a></li>
- </ul></dd>
- <dt><a name="newServer" href="#newServer"><span>newServer:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: newServer(address: string = "127.0.0.1"; port: uint16 = 5000): ServerRef" href="akane.html#newServer%2Cstring%2Cuint16">akane: newServer(address: string = "127.0.0.1"; port: uint16 = 5000): ServerRef</a></li>
- </ul></dd>
- <dt><a name="pages" href="#pages"><span>pages:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: pages(server: ServerRef; body: untyped): untyped" href="akane.html#pages.m%2CServerRef%2Cuntyped">akane: pages(server: ServerRef; body: untyped): untyped</a></li>
- </ul></dd>
- <dt><a name="parseQuery" href="#parseQuery"><span>parseQuery:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: parseQuery(request: Request): Future[JsonNode]" href="akane.html#parseQuery%2CRequest">akane: parseQuery(request: Request): Future[JsonNode]</a></li>
- </ul></dd>
- <dt><a name="password2hash" href="#password2hash"><span>password2hash:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: password2hash(password: string): Future[string]" href="akane.html#password2hash%2Cstring">akane: password2hash(password: string): Future[string]</a></li>
- </ul></dd>
- <dt><a name="send" href="#send"><span>send:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: send(request, message: untyped; http_code = Http200;
- headers: HttpHeaders = newHttpHeaders()): untyped" href="akane.html#send.m%2Cuntyped%2Cuntyped%2CHttpHeaders">akane: send(request, message: untyped; http_code = Http200;
- headers: HttpHeaders = newHttpHeaders()): untyped</a></li>
- </ul></dd>
- <dt><a name="sendJson" href="#sendJson"><span>sendJson:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: sendJson(request, message: untyped; http_code = Http200): untyped" href="akane.html#sendJson.m%2Cuntyped%2Cuntyped">akane: sendJson(request, message: untyped; http_code = Http200): untyped</a></li>
- </ul></dd>
- <dt><a name="sendPlaintext" href="#sendPlaintext"><span>sendPlaintext:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: sendPlaintext(request, message: untyped; http_code = Http200): untyped" href="akane.html#sendPlaintext.m%2Cuntyped%2Cuntyped">akane: sendPlaintext(request, message: untyped; http_code = Http200): untyped</a></li>
- </ul></dd>
- <dt><a name="ServerRef" href="#ServerRef"><span>ServerRef:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: ServerRef" href="akane.html#ServerRef">akane: ServerRef</a></li>
- </ul></dd>
- <dt><a name="start" href="#start"><span>start:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: start(server: ServerRef): untyped" href="akane.html#start.m%2CServerRef">akane: start(server: ServerRef): untyped</a></li>
- </ul></dd>
- <dt><a name="validatePassword" href="#validatePassword"><span>validatePassword:</span></a></dt><dd><ul class="simple">
- <li><a class="reference external"
- data-doc-search-tag="akane: validatePassword(password, hashpassword: string): Future[bool]" href="akane.html#validatePassword%2Cstring%2Cstring">akane: validatePassword(password, hashpassword: string): Future[bool]</a></li>
- </ul></dd>
- </dl>
- <div class="row">
- <div class="twelve-columns footer">
- <span class="nim-sprite"></span>
- <br/>
- <small style="color: var(--hint);">Made with Nim. Generated: 2023-03-29 07:13:26 UTC</small>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|