theindex.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <!-- This file is generated by Nim. -->
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <!-- Favicon -->
  10. <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=="/>
  11. <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=">
  12. <!-- Google fonts -->
  13. <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
  14. <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
  15. <!-- CSS -->
  16. <title>Index</title>
  17. <link rel="stylesheet" type="text/css" href="nimdoc.out.css">
  18. <script type="text/javascript" src="dochack.js"></script>
  19. <script type="text/javascript">
  20. function main() {
  21. var pragmaDots = document.getElementsByClassName("pragmadots");
  22. for (var i = 0; i < pragmaDots.length; i++) {
  23. pragmaDots[i].onclick = function(event) {
  24. // Hide tease
  25. event.target.parentNode.style.display = "none";
  26. // Show actual
  27. event.target.parentNode.nextElementSibling.style.display = "inline";
  28. }
  29. }
  30. const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
  31. function switchTheme(e) {
  32. if (e.target.checked) {
  33. document.documentElement.setAttribute('data-theme', 'dark');
  34. localStorage.setItem('theme', 'dark');
  35. } else {
  36. document.documentElement.setAttribute('data-theme', 'light');
  37. localStorage.setItem('theme', 'light');
  38. }
  39. }
  40. toggleSwitch.addEventListener('change', switchTheme, false);
  41. const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
  42. if (currentTheme) {
  43. document.documentElement.setAttribute('data-theme', currentTheme);
  44. if (currentTheme === 'dark') {
  45. toggleSwitch.checked = true;
  46. }
  47. }
  48. }
  49. </script>
  50. </head>
  51. <body onload="main()">
  52. <div class="document" id="documentId">
  53. <div class="container">
  54. <h1 class="title">Index</h1>
  55. Modules: <a href="akane.html">akane</a>.<br/><p /><h2>API symbols</h2>
  56. <dl><dt><a name="answer" href="#answer"><span>answer:</span></a></dt><dd><ul class="simple">
  57. <li><a class="reference external"
  58. data-doc-search-tag="akane: answer(request, message: untyped; http_code = Http200;
  59. headers: HttpHeaders = newHttpHeaders()): untyped" href="akane.html#answer.m%2Cuntyped%2Cuntyped%2CHttpHeaders">akane: answer(request, message: untyped; http_code = Http200;
  60. headers: HttpHeaders = newHttpHeaders()): untyped</a></li>
  61. </ul></dd>
  62. <dt><a name="AnyHttpMethod" href="#AnyHttpMethod"><span>AnyHttpMethod:</span></a></dt><dd><ul class="simple">
  63. <li><a class="reference external"
  64. data-doc-search-tag="akane: AnyHttpMethod" href="akane.html#AnyHttpMethod">akane: AnyHttpMethod</a></li>
  65. </ul></dd>
  66. <dt><a name="BaseHttpMethod" href="#BaseHttpMethod"><span>BaseHttpMethod:</span></a></dt><dd><ul class="simple">
  67. <li><a class="reference external"
  68. data-doc-search-tag="akane: BaseHttpMethod" href="akane.html#BaseHttpMethod">akane: BaseHttpMethod</a></li>
  69. </ul></dd>
  70. <dt><a name="error" href="#error"><span>error:</span></a></dt><dd><ul class="simple">
  71. <li><a class="reference external"
  72. data-doc-search-tag="akane: error(request, message: untyped; http_code = Http404;
  73. headers: HttpHeaders = newHttpHeaders()): untyped" href="akane.html#error.m%2Cuntyped%2Cuntyped%2CHttpHeaders">akane: error(request, message: untyped; http_code = Http404;
  74. headers: HttpHeaders = newHttpHeaders()): untyped</a></li>
  75. </ul></dd>
  76. <dt><a name="loadtemplate" href="#loadtemplate"><span>loadtemplate:</span></a></dt><dd><ul class="simple">
  77. <li><a class="reference external"
  78. 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>
  79. </ul></dd>
  80. <dt><a name="newCookie" href="#newCookie"><span>newCookie:</span></a></dt><dd><ul class="simple">
  81. <li><a class="reference external"
  82. data-doc-search-tag="akane: newCookie(server: ServerRef; key, value: string; domain = &quot;&quot;): HttpHeaders" href="akane.html#newCookie%2CServerRef%2Cstring%2Cstring%2Cstring">akane: newCookie(server: ServerRef; key, value: string; domain = &quot;&quot;): HttpHeaders</a></li>
  83. </ul></dd>
  84. <dt><a name="newServer" href="#newServer"><span>newServer:</span></a></dt><dd><ul class="simple">
  85. <li><a class="reference external"
  86. data-doc-search-tag="akane: newServer(address: string = &quot;127.0.0.1&quot;; port: uint16 = 5000): ServerRef" href="akane.html#newServer%2Cstring%2Cuint16">akane: newServer(address: string = &quot;127.0.0.1&quot;; port: uint16 = 5000): ServerRef</a></li>
  87. </ul></dd>
  88. <dt><a name="pages" href="#pages"><span>pages:</span></a></dt><dd><ul class="simple">
  89. <li><a class="reference external"
  90. 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>
  91. </ul></dd>
  92. <dt><a name="parseQuery" href="#parseQuery"><span>parseQuery:</span></a></dt><dd><ul class="simple">
  93. <li><a class="reference external"
  94. data-doc-search-tag="akane: parseQuery(request: Request): Future[JsonNode]" href="akane.html#parseQuery%2CRequest">akane: parseQuery(request: Request): Future[JsonNode]</a></li>
  95. </ul></dd>
  96. <dt><a name="password2hash" href="#password2hash"><span>password2hash:</span></a></dt><dd><ul class="simple">
  97. <li><a class="reference external"
  98. data-doc-search-tag="akane: password2hash(password: string): Future[string]" href="akane.html#password2hash%2Cstring">akane: password2hash(password: string): Future[string]</a></li>
  99. </ul></dd>
  100. <dt><a name="send" href="#send"><span>send:</span></a></dt><dd><ul class="simple">
  101. <li><a class="reference external"
  102. data-doc-search-tag="akane: send(request, message: untyped; http_code = Http200;
  103. headers: HttpHeaders = newHttpHeaders()): untyped" href="akane.html#send.m%2Cuntyped%2Cuntyped%2CHttpHeaders">akane: send(request, message: untyped; http_code = Http200;
  104. headers: HttpHeaders = newHttpHeaders()): untyped</a></li>
  105. </ul></dd>
  106. <dt><a name="sendJson" href="#sendJson"><span>sendJson:</span></a></dt><dd><ul class="simple">
  107. <li><a class="reference external"
  108. 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>
  109. </ul></dd>
  110. <dt><a name="sendPlaintext" href="#sendPlaintext"><span>sendPlaintext:</span></a></dt><dd><ul class="simple">
  111. <li><a class="reference external"
  112. 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>
  113. </ul></dd>
  114. <dt><a name="ServerRef" href="#ServerRef"><span>ServerRef:</span></a></dt><dd><ul class="simple">
  115. <li><a class="reference external"
  116. data-doc-search-tag="akane: ServerRef" href="akane.html#ServerRef">akane: ServerRef</a></li>
  117. </ul></dd>
  118. <dt><a name="start" href="#start"><span>start:</span></a></dt><dd><ul class="simple">
  119. <li><a class="reference external"
  120. data-doc-search-tag="akane: start(server: ServerRef): untyped" href="akane.html#start.m%2CServerRef">akane: start(server: ServerRef): untyped</a></li>
  121. </ul></dd>
  122. <dt><a name="validatePassword" href="#validatePassword"><span>validatePassword:</span></a></dt><dd><ul class="simple">
  123. <li><a class="reference external"
  124. 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>
  125. </ul></dd>
  126. </dl>
  127. <div class="row">
  128. <div class="twelve-columns footer">
  129. <span class="nim-sprite"></span>
  130. <br/>
  131. <small style="color: var(--hint);">Made with Nim. Generated: 2023-03-29 07:13:26 UTC</small>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </body>
  137. </html>