httpcore.html 105 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <!-- This file is generated by Nim. -->
  4. <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>std/httpcore</title>
  9. <!-- Google fonts -->
  10. <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
  11. <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
  12. <!-- Favicon -->
  13. <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=="/>
  14. <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=">
  15. <!-- CSS -->
  16. <link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
  17. <!-- JS -->
  18. <script type="text/javascript" src="dochack.js?v=2.3.1"></script>
  19. </head>
  20. <body>
  21. <div class="document" id="documentId">
  22. <div class="container">
  23. <h1 class="title">std/httpcore</h1>
  24. <div class="row">
  25. <div class="three columns">
  26. <div class="theme-select-wrapper">
  27. <label for="theme-select">Theme:&nbsp;</label>
  28. <select id="theme-select" onchange="setTheme(this.value)">
  29. <option value="auto">🌗 Match OS</option>
  30. <option value="dark">🌑 Dark</option>
  31. <option value="light">🌕 Light</option>
  32. </select>
  33. </div>
  34. <div id="global-links">
  35. <ul class="simple-boot">
  36. <li><a href="manual.html">Manual</a></li>
  37. <li><a href="lib.html">Standard library</a></li>
  38. <li> <a id="indexLink" href="theindex.html">Index</a></li>
  39. <li><a href="compiler/theindex.html">Compiler docs</a></li>
  40. <li><a href="https://nim-lang.github.io/fusion/theindex.html">Fusion docs</a></li>
  41. <li><a href="https://nim-lang.github.io/Nim/">devel</a>, <a href="https://nim-lang.org/documentation.html">stable</a></li>
  42. </ul>
  43. </div>
  44. <div id="searchInputDiv">
  45. Search: <input type="search" id="searchInput"
  46. oninput="search()" />
  47. </div>
  48. <ul class="simple simple-toc" id="toc-list">
  49. <li>
  50. <a class="reference reference-toplevel" href="#6" id="56">Imports</a>
  51. </li>
  52. <li>
  53. <details open>
  54. <summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
  55. <ul class="simple simple-toc-section">
  56. <li><a class="reference" href="#HttpCode" title="HttpCode = distinct range[0 .. 599]">HttpCode</a></li>
  57. <li><a class="reference" href="#HttpHeaders" title="HttpHeaders = ref object
  58. table*: TableRef[string, seq[string]]">HttpHeaders</a></li>
  59. <li><a class="reference" href="#HttpHeaderValues" title="HttpHeaderValues = distinct seq[string]">HttpHeaderValues</a></li>
  60. <li><a class="reference" href="#HttpMethod" title="HttpMethod = enum
  61. HttpHead = &quot;HEAD&quot;, ## Asks for the response identical to the one that
  62. ## would correspond to a GET request, but without
  63. ## the response body.
  64. HttpGet = &quot;GET&quot;, ## Retrieves the specified resource.
  65. HttpPost = &quot;POST&quot;, ## Submits data to be processed to the identified
  66. ## resource. The data is included in the body of
  67. ## the request.
  68. HttpPut = &quot;PUT&quot;, ## Uploads a representation of the specified
  69. ## resource.
  70. HttpDelete = &quot;DELETE&quot;, ## Deletes the specified resource.
  71. HttpTrace = &quot;TRACE&quot;, ## Echoes back the received request, so that a
  72. ## client
  73. ## can see what intermediate servers are adding or
  74. ## changing in the request.
  75. HttpOptions = &quot;OPTIONS&quot;, ## Returns the HTTP methods that the server
  76. ## supports for specified address.
  77. HttpConnect = &quot;CONNECT&quot;, ## Converts the request connection to a transparent
  78. ## TCP/IP tunnel, usually used for proxies.
  79. HttpPatch = &quot;PATCH&quot; ## Applies partial modifications to a resource.">HttpMethod</a></li>
  80. <li><a class="reference" href="#HttpVersion" title="HttpVersion = enum
  81. HttpVer11, HttpVer10">HttpVersion</a></li>
  82. </ul>
  83. </details>
  84. </li>
  85. <li>
  86. <details open>
  87. <summary><a class="reference reference-toplevel" href="#10" id="60">Consts</a></summary>
  88. <ul class="simple simple-toc-section">
  89. <li><a class="reference" href="#headerLimit" title="headerLimit = 10000">headerLimit</a></li>
  90. <li><a class="reference" href="#Http100" title="Http100 = 100">Http100</a></li>
  91. <li><a class="reference" href="#Http101" title="Http101 = 101">Http101</a></li>
  92. <li><a class="reference" href="#Http102" title="Http102 = 102">Http102</a></li>
  93. <li><a class="reference" href="#Http103" title="Http103 = 103">Http103</a></li>
  94. <li><a class="reference" href="#Http200" title="Http200 = 200">Http200</a></li>
  95. <li><a class="reference" href="#Http201" title="Http201 = 201">Http201</a></li>
  96. <li><a class="reference" href="#Http202" title="Http202 = 202">Http202</a></li>
  97. <li><a class="reference" href="#Http203" title="Http203 = 203">Http203</a></li>
  98. <li><a class="reference" href="#Http204" title="Http204 = 204">Http204</a></li>
  99. <li><a class="reference" href="#Http205" title="Http205 = 205">Http205</a></li>
  100. <li><a class="reference" href="#Http206" title="Http206 = 206">Http206</a></li>
  101. <li><a class="reference" href="#Http207" title="Http207 = 207">Http207</a></li>
  102. <li><a class="reference" href="#Http208" title="Http208 = 208">Http208</a></li>
  103. <li><a class="reference" href="#Http226" title="Http226 = 226">Http226</a></li>
  104. <li><a class="reference" href="#Http300" title="Http300 = 300">Http300</a></li>
  105. <li><a class="reference" href="#Http301" title="Http301 = 301">Http301</a></li>
  106. <li><a class="reference" href="#Http302" title="Http302 = 302">Http302</a></li>
  107. <li><a class="reference" href="#Http303" title="Http303 = 303">Http303</a></li>
  108. <li><a class="reference" href="#Http304" title="Http304 = 304">Http304</a></li>
  109. <li><a class="reference" href="#Http305" title="Http305 = 305">Http305</a></li>
  110. <li><a class="reference" href="#Http307" title="Http307 = 307">Http307</a></li>
  111. <li><a class="reference" href="#Http308" title="Http308 = 308">Http308</a></li>
  112. <li><a class="reference" href="#Http400" title="Http400 = 400">Http400</a></li>
  113. <li><a class="reference" href="#Http401" title="Http401 = 401">Http401</a></li>
  114. <li><a class="reference" href="#Http402" title="Http402 = 402">Http402</a></li>
  115. <li><a class="reference" href="#Http403" title="Http403 = 403">Http403</a></li>
  116. <li><a class="reference" href="#Http404" title="Http404 = 404">Http404</a></li>
  117. <li><a class="reference" href="#Http405" title="Http405 = 405">Http405</a></li>
  118. <li><a class="reference" href="#Http406" title="Http406 = 406">Http406</a></li>
  119. <li><a class="reference" href="#Http407" title="Http407 = 407">Http407</a></li>
  120. <li><a class="reference" href="#Http408" title="Http408 = 408">Http408</a></li>
  121. <li><a class="reference" href="#Http409" title="Http409 = 409">Http409</a></li>
  122. <li><a class="reference" href="#Http410" title="Http410 = 410">Http410</a></li>
  123. <li><a class="reference" href="#Http411" title="Http411 = 411">Http411</a></li>
  124. <li><a class="reference" href="#Http412" title="Http412 = 412">Http412</a></li>
  125. <li><a class="reference" href="#Http413" title="Http413 = 413">Http413</a></li>
  126. <li><a class="reference" href="#Http414" title="Http414 = 414">Http414</a></li>
  127. <li><a class="reference" href="#Http415" title="Http415 = 415">Http415</a></li>
  128. <li><a class="reference" href="#Http416" title="Http416 = 416">Http416</a></li>
  129. <li><a class="reference" href="#Http417" title="Http417 = 417">Http417</a></li>
  130. <li><a class="reference" href="#Http418" title="Http418 = 418">Http418</a></li>
  131. <li><a class="reference" href="#Http421" title="Http421 = 421">Http421</a></li>
  132. <li><a class="reference" href="#Http422" title="Http422 = 422">Http422</a></li>
  133. <li><a class="reference" href="#Http423" title="Http423 = 423">Http423</a></li>
  134. <li><a class="reference" href="#Http424" title="Http424 = 424">Http424</a></li>
  135. <li><a class="reference" href="#Http425" title="Http425 = 425">Http425</a></li>
  136. <li><a class="reference" href="#Http426" title="Http426 = 426">Http426</a></li>
  137. <li><a class="reference" href="#Http428" title="Http428 = 428">Http428</a></li>
  138. <li><a class="reference" href="#Http429" title="Http429 = 429">Http429</a></li>
  139. <li><a class="reference" href="#Http431" title="Http431 = 431">Http431</a></li>
  140. <li><a class="reference" href="#Http451" title="Http451 = 451">Http451</a></li>
  141. <li><a class="reference" href="#Http500" title="Http500 = 500">Http500</a></li>
  142. <li><a class="reference" href="#Http501" title="Http501 = 501">Http501</a></li>
  143. <li><a class="reference" href="#Http502" title="Http502 = 502">Http502</a></li>
  144. <li><a class="reference" href="#Http503" title="Http503 = 503">Http503</a></li>
  145. <li><a class="reference" href="#Http504" title="Http504 = 504">Http504</a></li>
  146. <li><a class="reference" href="#Http505" title="Http505 = 505">Http505</a></li>
  147. <li><a class="reference" href="#Http506" title="Http506 = 506">Http506</a></li>
  148. <li><a class="reference" href="#Http507" title="Http507 = 507">Http507</a></li>
  149. <li><a class="reference" href="#Http508" title="Http508 = 508">Http508</a></li>
  150. <li><a class="reference" href="#Http510" title="Http510 = 510">Http510</a></li>
  151. <li><a class="reference" href="#Http511" title="Http511 = 511">Http511</a></li>
  152. <li><a class="reference" href="#httpNewLine" title="httpNewLine = &quot;\r\n&quot;">httpNewLine</a></li>
  153. </ul>
  154. </details>
  155. </li>
  156. <li>
  157. <details open>
  158. <summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
  159. <ul class="simple simple-toc-section">
  160. <ul class="simple nested-toc-section">$
  161. <li><a class="reference" href="#%24%2CHttpCode" title="`$`(code: HttpCode): string">`$`(code: HttpCode): string</a></li>
  162. <li><a class="reference" href="#%24%2CHttpHeaders" title="`$`(headers: HttpHeaders): string">`$`(headers: HttpHeaders): string</a></li>
  163. </ul>
  164. <ul class="simple nested-toc-section">==
  165. <li><a class="reference" href="#%3D%3D%2CHttpCode%2CHttpCode" title="`==`(a, b: HttpCode): bool">`==`(a, b: HttpCode): bool</a></li>
  166. <li><a class="reference" href="#%3D%3D%2Ctuple%5Bstring%2Cint%2Cint%5D%2CHttpVersion" title="`==`(protocol: tuple[orig: string, major, minor: int]; ver: HttpVersion): bool">`==`(protocol: tuple[orig: string, major, minor: int]; ver: HttpVersion): bool</a></li>
  167. </ul>
  168. <ul class="simple nested-toc-section">[]
  169. <li><a class="reference" href="#%5B%5D%2CHttpHeaders%2Cstring" title="`[]`(headers: HttpHeaders; key: string): HttpHeaderValues">`[]`(headers: HttpHeaders; key: string): HttpHeaderValues</a></li>
  170. <li><a class="reference" href="#%5B%5D%2CHttpHeaders%2Cstring%2Cint" title="`[]`(headers: HttpHeaders; key: string; i: int): string">`[]`(headers: HttpHeaders; key: string; i: int): string</a></li>
  171. </ul>
  172. <ul class="simple nested-toc-section">[]=
  173. <li><a class="reference" href="#%5B%5D%3D%2CHttpHeaders%2Cstring%2Cstring" title="`[]=`(headers: HttpHeaders; key, value: string)">`[]=`(headers: HttpHeaders; key, value: string)</a></li>
  174. <li><a class="reference" href="#%5B%5D%3D%2CHttpHeaders%2Cstring%2Cseq%5Bstring%5D" title="`[]=`(headers: HttpHeaders; key: string; value: seq[string])">`[]=`(headers: HttpHeaders; key: string; value: seq[string])</a></li>
  175. </ul>
  176. <ul class="simple nested-toc-section">add
  177. <li><a class="reference" href="#add%2CHttpHeaders%2Cstring%2Cstring" title="add(headers: HttpHeaders; key, value: string)">add(headers: HttpHeaders; key, value: string)</a></li>
  178. </ul>
  179. <ul class="simple nested-toc-section">clear
  180. <li><a class="reference" href="#clear%2CHttpHeaders" title="clear(headers: HttpHeaders)">clear(headers: HttpHeaders)</a></li>
  181. </ul>
  182. <ul class="simple nested-toc-section">contains
  183. <li><a class="reference" href="#contains%2Cset%5BHttpMethod%5D%2Cstring" title="contains(methods: set[HttpMethod]; x: string): bool">contains(methods: set[HttpMethod]; x: string): bool</a></li>
  184. <li><a class="reference" href="#contains%2CHttpHeaderValues%2Cstring" title="contains(values: HttpHeaderValues; value: string): bool">contains(values: HttpHeaderValues; value: string): bool</a></li>
  185. </ul>
  186. <ul class="simple nested-toc-section">del
  187. <li><a class="reference" href="#del%2CHttpHeaders%2Cstring" title="del(headers: HttpHeaders; key: string)">del(headers: HttpHeaders; key: string)</a></li>
  188. </ul>
  189. <ul class="simple nested-toc-section">getOrDefault
  190. <li><a class="reference" href="#getOrDefault%2CHttpHeaders%2Cstring" title="getOrDefault(headers: HttpHeaders; key: string;
  191. default = @[&quot;&quot;].HttpHeaderValues): HttpHeaderValues">getOrDefault(headers: HttpHeaders; key: string;
  192. default = @[&quot;&quot;].HttpHeaderValues): HttpHeaderValues</a></li>
  193. </ul>
  194. <ul class="simple nested-toc-section">hasKey
  195. <li><a class="reference" href="#hasKey%2CHttpHeaders%2Cstring" title="hasKey(headers: HttpHeaders; key: string): bool">hasKey(headers: HttpHeaders; key: string): bool</a></li>
  196. </ul>
  197. <ul class="simple nested-toc-section">is1xx
  198. <li><a class="reference" href="#is1xx%2CHttpCode" title="is1xx(code: HttpCode): bool">is1xx(code: HttpCode): bool</a></li>
  199. </ul>
  200. <ul class="simple nested-toc-section">is2xx
  201. <li><a class="reference" href="#is2xx%2CHttpCode" title="is2xx(code: HttpCode): bool">is2xx(code: HttpCode): bool</a></li>
  202. </ul>
  203. <ul class="simple nested-toc-section">is3xx
  204. <li><a class="reference" href="#is3xx%2CHttpCode" title="is3xx(code: HttpCode): bool">is3xx(code: HttpCode): bool</a></li>
  205. </ul>
  206. <ul class="simple nested-toc-section">is4xx
  207. <li><a class="reference" href="#is4xx%2CHttpCode" title="is4xx(code: HttpCode): bool">is4xx(code: HttpCode): bool</a></li>
  208. </ul>
  209. <ul class="simple nested-toc-section">is5xx
  210. <li><a class="reference" href="#is5xx%2CHttpCode" title="is5xx(code: HttpCode): bool">is5xx(code: HttpCode): bool</a></li>
  211. </ul>
  212. <ul class="simple nested-toc-section">len
  213. <li><a class="reference" href="#len%2CHttpHeaders" title="len(headers: HttpHeaders): int">len(headers: HttpHeaders): int</a></li>
  214. </ul>
  215. <ul class="simple nested-toc-section">newHttpHeaders
  216. <li><a class="reference" href="#newHttpHeaders%2CopenArray%5Btuple%5Bstring%2Cstring%5D%5D" title="newHttpHeaders(keyValuePairs: openArray[tuple[key: string, val: string]];
  217. titleCase = false): HttpHeaders">newHttpHeaders(keyValuePairs: openArray[tuple[key: string, val: string]];
  218. titleCase = false): HttpHeaders</a></li>
  219. <li><a class="reference" href="#newHttpHeaders" title="newHttpHeaders(titleCase = false): HttpHeaders">newHttpHeaders(titleCase = false): HttpHeaders</a></li>
  220. </ul>
  221. <ul class="simple nested-toc-section">parseHeader
  222. <li><a class="reference" href="#parseHeader%2Cstring" title="parseHeader(line: string): tuple[key: string, value: seq[string]]">parseHeader(line: string): tuple[key: string, value: seq[string]]</a></li>
  223. </ul>
  224. <ul class="simple nested-toc-section">toCaseInsensitive
  225. <li><a class="reference" href="#toCaseInsensitive%2CHttpHeaders%2Cstring" title="toCaseInsensitive(headers: HttpHeaders; s: string): string">toCaseInsensitive(headers: HttpHeaders; s: string): string</a></li>
  226. </ul>
  227. </ul>
  228. </details>
  229. </li>
  230. <li>
  231. <details open>
  232. <summary><a class="reference reference-toplevel" href="#15" id="65">Iterators</a></summary>
  233. <ul class="simple simple-toc-section">
  234. <ul class="simple nested-toc-section">pairs
  235. <li><a class="reference" href="#pairs.i%2CHttpHeaders" title="pairs(headers: HttpHeaders): tuple[key, value: string]">pairs(headers: HttpHeaders): tuple[key, value: string]</a></li>
  236. </ul>
  237. </ul>
  238. </details>
  239. </li>
  240. <li>
  241. <details open>
  242. <summary><a class="reference reference-toplevel" href="#16" id="66">Converters</a></summary>
  243. <ul class="simple simple-toc-section">
  244. <ul class="simple nested-toc-section">toString
  245. <li><a class="reference" href="#toString.c%2CHttpHeaderValues" title="toString(values: HttpHeaderValues): string">toString(values: HttpHeaderValues): string</a></li>
  246. </ul>
  247. </ul>
  248. </details>
  249. </li>
  250. </ul>
  251. </div>
  252. <div class="nine columns" id="content">
  253. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L1" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  254. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L1" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  255. <div id="tocRoot"></div>
  256. <p class="module-desc"><p>Contains functionality shared between the <tt class="docutils literal"><span class="pre"><span class="Identifier">httpclient</span></span></tt> and <tt class="docutils literal"><span class="pre"><span class="Identifier">asynchttpserver</span></span></tt> modules.</p>
  257. <p>Unstable API.</p>
  258. </p>
  259. <div class="section" id="6">
  260. <h1><a class="toc-backref" href="#6">Imports</a></h1>
  261. <dl class="item">
  262. <a class="reference external" href="since.html">since</a>, <a class="reference external" href="tables.html">tables</a>, <a class="reference external" href="strutils.html">strutils</a>, <a class="reference external" href="parseutils.html">parseutils</a>
  263. </dl>
  264. </div>
  265. <div class="section" id="7">
  266. <h1><a class="toc-backref" href="#7">Types</a></h1>
  267. <dl class="item">
  268. <div id="HttpCode">
  269. <dt><pre><a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a> <span class="Other">=</span> <span class="Keyword">distinct</span> <a href="system.html#range"><span class="Identifier">range</span></a><span class="Other">[</span><span class="DecNumber">0</span> <span class="Operator">..</span> <span class="DecNumber">599</span><span class="Other">]</span></pre></dt>
  270. <dd>
  271. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L26" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  272. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L26" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  273. </dd>
  274. </div>
  275. <div id="HttpHeaders">
  276. <dt><pre><a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a> <span class="Other">=</span> <span class="Keyword">ref</span> <span class="Keyword">object</span>
  277. <span class="Identifier">table</span><span class="Operator">*</span><span class="Other">:</span> <a href="tables.html#TableRef"><span class="Identifier">TableRef</span></a><span class="Other">[</span><a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">,</span> <a href="system.html#seq"><span class="Identifier">seq</span></a><span class="Other">[</span><a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span><span class="Other">]</span></pre></dt>
  278. <dd>
  279. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L18" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  280. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L18" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  281. </dd>
  282. </div>
  283. <div id="HttpHeaderValues">
  284. <dt><pre><a href="httpcore.html#HttpHeaderValues"><span class="Identifier">HttpHeaderValues</span></a> <span class="Other">=</span> <span class="Keyword">distinct</span> <a href="system.html#seq"><span class="Identifier">seq</span></a><span class="Other">[</span><a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span></pre></dt>
  285. <dd>
  286. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L22" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  287. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L22" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  288. </dd>
  289. </div>
  290. <div id="HttpMethod">
  291. <dt><pre><a href="httpcore.html#HttpMethod"><span class="Identifier">HttpMethod</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
  292. <span class="Identifier">HttpHead</span> <span class="Other">=</span> <span class="StringLit">&quot;HEAD&quot;</span><span class="Other">,</span> <span class="Comment">## Asks for the response identical to the one that</span>
  293. <span class="Comment">## would correspond to a GET request, but without</span>
  294. <span class="Comment">## the response body.</span>
  295. <span class="Identifier">HttpGet</span> <span class="Other">=</span> <span class="StringLit">&quot;GET&quot;</span><span class="Other">,</span> <span class="Comment">## Retrieves the specified resource.</span>
  296. <span class="Identifier">HttpPost</span> <span class="Other">=</span> <span class="StringLit">&quot;POST&quot;</span><span class="Other">,</span> <span class="Comment">## Submits data to be processed to the identified</span>
  297. <span class="Comment">## resource. The data is included in the body of</span>
  298. <span class="Comment">## the request.</span>
  299. <span class="Identifier">HttpPut</span> <span class="Other">=</span> <span class="StringLit">&quot;PUT&quot;</span><span class="Other">,</span> <span class="Comment">## Uploads a representation of the specified</span>
  300. <span class="Comment">## resource.</span>
  301. <span class="Identifier">HttpDelete</span> <span class="Other">=</span> <span class="StringLit">&quot;DELETE&quot;</span><span class="Other">,</span> <span class="Comment">## Deletes the specified resource.</span>
  302. <span class="Identifier">HttpTrace</span> <span class="Other">=</span> <span class="StringLit">&quot;TRACE&quot;</span><span class="Other">,</span> <span class="Comment">## Echoes back the received request, so that a</span>
  303. <span class="Comment">## client</span>
  304. <span class="Comment">## can see what intermediate servers are adding or</span>
  305. <span class="Comment">## changing in the request.</span>
  306. <span class="Identifier">HttpOptions</span> <span class="Other">=</span> <span class="StringLit">&quot;OPTIONS&quot;</span><span class="Other">,</span> <span class="Comment">## Returns the HTTP methods that the server</span>
  307. <span class="Comment">## supports for specified address.</span>
  308. <span class="Identifier">HttpConnect</span> <span class="Other">=</span> <span class="StringLit">&quot;CONNECT&quot;</span><span class="Other">,</span> <span class="Comment">## Converts the request connection to a transparent</span>
  309. <span class="Comment">## TCP/IP tunnel, usually used for proxies.</span>
  310. <span class="Identifier">HttpPatch</span> <span class="Other">=</span> <span class="StringLit">&quot;PATCH&quot;</span> <span class="Comment">## Applies partial modifications to a resource.</span></pre></dt>
  311. <dd>
  312. the requested HttpMethod
  313. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L32" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  314. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L32" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  315. </dd>
  316. </div>
  317. <div id="HttpVersion">
  318. <dt><pre><a href="httpcore.html#HttpVersion"><span class="Identifier">HttpVersion</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
  319. <span class="Identifier">HttpVer11</span><span class="Other">,</span> <span class="Identifier">HttpVer10</span></pre></dt>
  320. <dd>
  321. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L28" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  322. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L28" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  323. </dd>
  324. </div>
  325. </dl>
  326. </div>
  327. <div class="section" id="10">
  328. <h1><a class="toc-backref" href="#10">Consts</a></h1>
  329. <dl class="item">
  330. <div id="headerLimit">
  331. <dt><pre><a href="httpcore.html#headerLimit"><span class="Identifier">headerLimit</span></a> <span class="Other">=</span> <span class="DecNumber">10000</span></pre></dt>
  332. <dd>
  333. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L120" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  334. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L120" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  335. </dd>
  336. </div>
  337. <div id="Http100">
  338. <dt><pre><a href="httpcore.html#Http100"><span class="Identifier">Http100</span></a> <span class="Other">=</span> <span class="DecNumber">100</span></pre></dt>
  339. <dd>
  340. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L55" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  341. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L55" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  342. </dd>
  343. </div>
  344. <div id="Http101">
  345. <dt><pre><a href="httpcore.html#Http101"><span class="Identifier">Http101</span></a> <span class="Other">=</span> <span class="DecNumber">101</span></pre></dt>
  346. <dd>
  347. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L56" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  348. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L56" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  349. </dd>
  350. </div>
  351. <div id="Http102">
  352. <dt><pre><a href="httpcore.html#Http102"><span class="Identifier">Http102</span></a> <span class="Other">=</span> <span class="DecNumber">102</span></pre></dt>
  353. <dd>
  354. <a class="reference external" href="https://tools.ietf.org/html/rfc2518.html">https://tools.ietf.org/html/rfc2518.html</a> WebDAV
  355. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L57" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  356. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L57" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  357. </dd>
  358. </div>
  359. <div id="Http103">
  360. <dt><pre><a href="httpcore.html#Http103"><span class="Identifier">Http103</span></a> <span class="Other">=</span> <span class="DecNumber">103</span></pre></dt>
  361. <dd>
  362. <a class="reference external" href="https://tools.ietf.org/html/rfc8297.html">https://tools.ietf.org/html/rfc8297.html</a> Early hints
  363. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L58" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  364. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L58" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  365. </dd>
  366. </div>
  367. <div id="Http200">
  368. <dt><pre><a href="httpcore.html#Http200"><span class="Identifier">Http200</span></a> <span class="Other">=</span> <span class="DecNumber">200</span></pre></dt>
  369. <dd>
  370. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L59" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  371. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L59" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  372. </dd>
  373. </div>
  374. <div id="Http201">
  375. <dt><pre><a href="httpcore.html#Http201"><span class="Identifier">Http201</span></a> <span class="Other">=</span> <span class="DecNumber">201</span></pre></dt>
  376. <dd>
  377. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L60" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  378. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L60" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  379. </dd>
  380. </div>
  381. <div id="Http202">
  382. <dt><pre><a href="httpcore.html#Http202"><span class="Identifier">Http202</span></a> <span class="Other">=</span> <span class="DecNumber">202</span></pre></dt>
  383. <dd>
  384. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L61" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  385. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L61" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  386. </dd>
  387. </div>
  388. <div id="Http203">
  389. <dt><pre><a href="httpcore.html#Http203"><span class="Identifier">Http203</span></a> <span class="Other">=</span> <span class="DecNumber">203</span></pre></dt>
  390. <dd>
  391. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L62" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  392. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L62" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  393. </dd>
  394. </div>
  395. <div id="Http204">
  396. <dt><pre><a href="httpcore.html#Http204"><span class="Identifier">Http204</span></a> <span class="Other">=</span> <span class="DecNumber">204</span></pre></dt>
  397. <dd>
  398. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L63" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  399. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L63" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  400. </dd>
  401. </div>
  402. <div id="Http205">
  403. <dt><pre><a href="httpcore.html#Http205"><span class="Identifier">Http205</span></a> <span class="Other">=</span> <span class="DecNumber">205</span></pre></dt>
  404. <dd>
  405. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L64" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  406. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L64" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  407. </dd>
  408. </div>
  409. <div id="Http206">
  410. <dt><pre><a href="httpcore.html#Http206"><span class="Identifier">Http206</span></a> <span class="Other">=</span> <span class="DecNumber">206</span></pre></dt>
  411. <dd>
  412. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L65" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  413. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L65" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  414. </dd>
  415. </div>
  416. <div id="Http207">
  417. <dt><pre><a href="httpcore.html#Http207"><span class="Identifier">Http207</span></a> <span class="Other">=</span> <span class="DecNumber">207</span></pre></dt>
  418. <dd>
  419. <a class="reference external" href="https://tools.ietf.org/html/rfc4918.html">https://tools.ietf.org/html/rfc4918.html</a> WebDAV
  420. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L66" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  421. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L66" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  422. </dd>
  423. </div>
  424. <div id="Http208">
  425. <dt><pre><a href="httpcore.html#Http208"><span class="Identifier">Http208</span></a> <span class="Other">=</span> <span class="DecNumber">208</span></pre></dt>
  426. <dd>
  427. <a class="reference external" href="https://tools.ietf.org/html/rfc5842.html">https://tools.ietf.org/html/rfc5842.html</a> WebDAV, Section 7.1
  428. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L67" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  429. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L67" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  430. </dd>
  431. </div>
  432. <div id="Http226">
  433. <dt><pre><a href="httpcore.html#Http226"><span class="Identifier">Http226</span></a> <span class="Other">=</span> <span class="DecNumber">226</span></pre></dt>
  434. <dd>
  435. <a class="reference external" href="https://tools.ietf.org/html/rfc3229.html">https://tools.ietf.org/html/rfc3229.html</a> Delta encoding, Section 10.4.1
  436. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L68" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  437. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L68" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  438. </dd>
  439. </div>
  440. <div id="Http300">
  441. <dt><pre><a href="httpcore.html#Http300"><span class="Identifier">Http300</span></a> <span class="Other">=</span> <span class="DecNumber">300</span></pre></dt>
  442. <dd>
  443. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L69" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  444. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L69" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  445. </dd>
  446. </div>
  447. <div id="Http301">
  448. <dt><pre><a href="httpcore.html#Http301"><span class="Identifier">Http301</span></a> <span class="Other">=</span> <span class="DecNumber">301</span></pre></dt>
  449. <dd>
  450. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L70" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  451. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L70" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  452. </dd>
  453. </div>
  454. <div id="Http302">
  455. <dt><pre><a href="httpcore.html#Http302"><span class="Identifier">Http302</span></a> <span class="Other">=</span> <span class="DecNumber">302</span></pre></dt>
  456. <dd>
  457. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L71" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  458. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L71" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  459. </dd>
  460. </div>
  461. <div id="Http303">
  462. <dt><pre><a href="httpcore.html#Http303"><span class="Identifier">Http303</span></a> <span class="Other">=</span> <span class="DecNumber">303</span></pre></dt>
  463. <dd>
  464. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L72" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  465. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L72" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  466. </dd>
  467. </div>
  468. <div id="Http304">
  469. <dt><pre><a href="httpcore.html#Http304"><span class="Identifier">Http304</span></a> <span class="Other">=</span> <span class="DecNumber">304</span></pre></dt>
  470. <dd>
  471. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L73" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  472. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L73" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  473. </dd>
  474. </div>
  475. <div id="Http305">
  476. <dt><pre><a href="httpcore.html#Http305"><span class="Identifier">Http305</span></a> <span class="Other">=</span> <span class="DecNumber">305</span></pre></dt>
  477. <dd>
  478. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L74" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  479. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L74" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  480. </dd>
  481. </div>
  482. <div id="Http307">
  483. <dt><pre><a href="httpcore.html#Http307"><span class="Identifier">Http307</span></a> <span class="Other">=</span> <span class="DecNumber">307</span></pre></dt>
  484. <dd>
  485. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L75" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  486. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L75" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  487. </dd>
  488. </div>
  489. <div id="Http308">
  490. <dt><pre><a href="httpcore.html#Http308"><span class="Identifier">Http308</span></a> <span class="Other">=</span> <span class="DecNumber">308</span></pre></dt>
  491. <dd>
  492. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L76" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  493. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L76" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  494. </dd>
  495. </div>
  496. <div id="Http400">
  497. <dt><pre><a href="httpcore.html#Http400"><span class="Identifier">Http400</span></a> <span class="Other">=</span> <span class="DecNumber">400</span></pre></dt>
  498. <dd>
  499. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L77" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  500. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L77" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  501. </dd>
  502. </div>
  503. <div id="Http401">
  504. <dt><pre><a href="httpcore.html#Http401"><span class="Identifier">Http401</span></a> <span class="Other">=</span> <span class="DecNumber">401</span></pre></dt>
  505. <dd>
  506. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L78" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  507. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L78" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  508. </dd>
  509. </div>
  510. <div id="Http402">
  511. <dt><pre><a href="httpcore.html#Http402"><span class="Identifier">Http402</span></a> <span class="Other">=</span> <span class="DecNumber">402</span></pre></dt>
  512. <dd>
  513. <a class="reference external" href="https://tools.ietf.org/html/rfc7231.html">https://tools.ietf.org/html/rfc7231.html</a> Payment required, Section 6.5.2
  514. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L79" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  515. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L79" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  516. </dd>
  517. </div>
  518. <div id="Http403">
  519. <dt><pre><a href="httpcore.html#Http403"><span class="Identifier">Http403</span></a> <span class="Other">=</span> <span class="DecNumber">403</span></pre></dt>
  520. <dd>
  521. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L80" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  522. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L80" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  523. </dd>
  524. </div>
  525. <div id="Http404">
  526. <dt><pre><a href="httpcore.html#Http404"><span class="Identifier">Http404</span></a> <span class="Other">=</span> <span class="DecNumber">404</span></pre></dt>
  527. <dd>
  528. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L81" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  529. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L81" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  530. </dd>
  531. </div>
  532. <div id="Http405">
  533. <dt><pre><a href="httpcore.html#Http405"><span class="Identifier">Http405</span></a> <span class="Other">=</span> <span class="DecNumber">405</span></pre></dt>
  534. <dd>
  535. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L82" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  536. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L82" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  537. </dd>
  538. </div>
  539. <div id="Http406">
  540. <dt><pre><a href="httpcore.html#Http406"><span class="Identifier">Http406</span></a> <span class="Other">=</span> <span class="DecNumber">406</span></pre></dt>
  541. <dd>
  542. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L83" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  543. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L83" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  544. </dd>
  545. </div>
  546. <div id="Http407">
  547. <dt><pre><a href="httpcore.html#Http407"><span class="Identifier">Http407</span></a> <span class="Other">=</span> <span class="DecNumber">407</span></pre></dt>
  548. <dd>
  549. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L84" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  550. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L84" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  551. </dd>
  552. </div>
  553. <div id="Http408">
  554. <dt><pre><a href="httpcore.html#Http408"><span class="Identifier">Http408</span></a> <span class="Other">=</span> <span class="DecNumber">408</span></pre></dt>
  555. <dd>
  556. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L85" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  557. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L85" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  558. </dd>
  559. </div>
  560. <div id="Http409">
  561. <dt><pre><a href="httpcore.html#Http409"><span class="Identifier">Http409</span></a> <span class="Other">=</span> <span class="DecNumber">409</span></pre></dt>
  562. <dd>
  563. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L86" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  564. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L86" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  565. </dd>
  566. </div>
  567. <div id="Http410">
  568. <dt><pre><a href="httpcore.html#Http410"><span class="Identifier">Http410</span></a> <span class="Other">=</span> <span class="DecNumber">410</span></pre></dt>
  569. <dd>
  570. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L87" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  571. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L87" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  572. </dd>
  573. </div>
  574. <div id="Http411">
  575. <dt><pre><a href="httpcore.html#Http411"><span class="Identifier">Http411</span></a> <span class="Other">=</span> <span class="DecNumber">411</span></pre></dt>
  576. <dd>
  577. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L88" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  578. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L88" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  579. </dd>
  580. </div>
  581. <div id="Http412">
  582. <dt><pre><a href="httpcore.html#Http412"><span class="Identifier">Http412</span></a> <span class="Other">=</span> <span class="DecNumber">412</span></pre></dt>
  583. <dd>
  584. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L89" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  585. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L89" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  586. </dd>
  587. </div>
  588. <div id="Http413">
  589. <dt><pre><a href="httpcore.html#Http413"><span class="Identifier">Http413</span></a> <span class="Other">=</span> <span class="DecNumber">413</span></pre></dt>
  590. <dd>
  591. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L90" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  592. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L90" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  593. </dd>
  594. </div>
  595. <div id="Http414">
  596. <dt><pre><a href="httpcore.html#Http414"><span class="Identifier">Http414</span></a> <span class="Other">=</span> <span class="DecNumber">414</span></pre></dt>
  597. <dd>
  598. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L91" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  599. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L91" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  600. </dd>
  601. </div>
  602. <div id="Http415">
  603. <dt><pre><a href="httpcore.html#Http415"><span class="Identifier">Http415</span></a> <span class="Other">=</span> <span class="DecNumber">415</span></pre></dt>
  604. <dd>
  605. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L92" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  606. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L92" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  607. </dd>
  608. </div>
  609. <div id="Http416">
  610. <dt><pre><a href="httpcore.html#Http416"><span class="Identifier">Http416</span></a> <span class="Other">=</span> <span class="DecNumber">416</span></pre></dt>
  611. <dd>
  612. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L93" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  613. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L93" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  614. </dd>
  615. </div>
  616. <div id="Http417">
  617. <dt><pre><a href="httpcore.html#Http417"><span class="Identifier">Http417</span></a> <span class="Other">=</span> <span class="DecNumber">417</span></pre></dt>
  618. <dd>
  619. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L94" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  620. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L94" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  621. </dd>
  622. </div>
  623. <div id="Http418">
  624. <dt><pre><a href="httpcore.html#Http418"><span class="Identifier">Http418</span></a> <span class="Other">=</span> <span class="DecNumber">418</span></pre></dt>
  625. <dd>
  626. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L95" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  627. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L95" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  628. </dd>
  629. </div>
  630. <div id="Http421">
  631. <dt><pre><a href="httpcore.html#Http421"><span class="Identifier">Http421</span></a> <span class="Other">=</span> <span class="DecNumber">421</span></pre></dt>
  632. <dd>
  633. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L96" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  634. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L96" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  635. </dd>
  636. </div>
  637. <div id="Http422">
  638. <dt><pre><a href="httpcore.html#Http422"><span class="Identifier">Http422</span></a> <span class="Other">=</span> <span class="DecNumber">422</span></pre></dt>
  639. <dd>
  640. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L97" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  641. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L97" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  642. </dd>
  643. </div>
  644. <div id="Http423">
  645. <dt><pre><a href="httpcore.html#Http423"><span class="Identifier">Http423</span></a> <span class="Other">=</span> <span class="DecNumber">423</span></pre></dt>
  646. <dd>
  647. <a class="reference external" href="https://tools.ietf.org/html/rfc4918.html">https://tools.ietf.org/html/rfc4918.html</a> WebDAV, Section 11.3
  648. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L98" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  649. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L98" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  650. </dd>
  651. </div>
  652. <div id="Http424">
  653. <dt><pre><a href="httpcore.html#Http424"><span class="Identifier">Http424</span></a> <span class="Other">=</span> <span class="DecNumber">424</span></pre></dt>
  654. <dd>
  655. <a class="reference external" href="https://tools.ietf.org/html/rfc4918.html">https://tools.ietf.org/html/rfc4918.html</a> WebDAV, Section 11.3
  656. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L99" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  657. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L99" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  658. </dd>
  659. </div>
  660. <div id="Http425">
  661. <dt><pre><a href="httpcore.html#Http425"><span class="Identifier">Http425</span></a> <span class="Other">=</span> <span class="DecNumber">425</span></pre></dt>
  662. <dd>
  663. <a class="reference external" href="https://tools.ietf.org/html/rfc8470.html">https://tools.ietf.org/html/rfc8470.html</a> Early data
  664. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L100" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  665. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L100" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  666. </dd>
  667. </div>
  668. <div id="Http426">
  669. <dt><pre><a href="httpcore.html#Http426"><span class="Identifier">Http426</span></a> <span class="Other">=</span> <span class="DecNumber">426</span></pre></dt>
  670. <dd>
  671. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L101" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  672. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L101" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  673. </dd>
  674. </div>
  675. <div id="Http428">
  676. <dt><pre><a href="httpcore.html#Http428"><span class="Identifier">Http428</span></a> <span class="Other">=</span> <span class="DecNumber">428</span></pre></dt>
  677. <dd>
  678. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L102" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  679. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L102" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  680. </dd>
  681. </div>
  682. <div id="Http429">
  683. <dt><pre><a href="httpcore.html#Http429"><span class="Identifier">Http429</span></a> <span class="Other">=</span> <span class="DecNumber">429</span></pre></dt>
  684. <dd>
  685. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L103" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  686. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L103" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  687. </dd>
  688. </div>
  689. <div id="Http431">
  690. <dt><pre><a href="httpcore.html#Http431"><span class="Identifier">Http431</span></a> <span class="Other">=</span> <span class="DecNumber">431</span></pre></dt>
  691. <dd>
  692. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L104" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  693. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L104" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  694. </dd>
  695. </div>
  696. <div id="Http451">
  697. <dt><pre><a href="httpcore.html#Http451"><span class="Identifier">Http451</span></a> <span class="Other">=</span> <span class="DecNumber">451</span></pre></dt>
  698. <dd>
  699. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L105" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  700. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L105" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  701. </dd>
  702. </div>
  703. <div id="Http500">
  704. <dt><pre><a href="httpcore.html#Http500"><span class="Identifier">Http500</span></a> <span class="Other">=</span> <span class="DecNumber">500</span></pre></dt>
  705. <dd>
  706. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L106" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  707. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L106" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  708. </dd>
  709. </div>
  710. <div id="Http501">
  711. <dt><pre><a href="httpcore.html#Http501"><span class="Identifier">Http501</span></a> <span class="Other">=</span> <span class="DecNumber">501</span></pre></dt>
  712. <dd>
  713. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L107" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  714. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L107" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  715. </dd>
  716. </div>
  717. <div id="Http502">
  718. <dt><pre><a href="httpcore.html#Http502"><span class="Identifier">Http502</span></a> <span class="Other">=</span> <span class="DecNumber">502</span></pre></dt>
  719. <dd>
  720. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L108" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  721. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L108" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  722. </dd>
  723. </div>
  724. <div id="Http503">
  725. <dt><pre><a href="httpcore.html#Http503"><span class="Identifier">Http503</span></a> <span class="Other">=</span> <span class="DecNumber">503</span></pre></dt>
  726. <dd>
  727. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L109" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  728. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L109" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  729. </dd>
  730. </div>
  731. <div id="Http504">
  732. <dt><pre><a href="httpcore.html#Http504"><span class="Identifier">Http504</span></a> <span class="Other">=</span> <span class="DecNumber">504</span></pre></dt>
  733. <dd>
  734. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L110" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  735. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L110" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  736. </dd>
  737. </div>
  738. <div id="Http505">
  739. <dt><pre><a href="httpcore.html#Http505"><span class="Identifier">Http505</span></a> <span class="Other">=</span> <span class="DecNumber">505</span></pre></dt>
  740. <dd>
  741. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L111" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  742. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L111" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  743. </dd>
  744. </div>
  745. <div id="Http506">
  746. <dt><pre><a href="httpcore.html#Http506"><span class="Identifier">Http506</span></a> <span class="Other">=</span> <span class="DecNumber">506</span></pre></dt>
  747. <dd>
  748. <a class="reference external" href="https://tools.ietf.org/html/rfc2295.html">https://tools.ietf.org/html/rfc2295.html</a> Content negotiation, Section 8.1
  749. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L112" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  750. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L112" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  751. </dd>
  752. </div>
  753. <div id="Http507">
  754. <dt><pre><a href="httpcore.html#Http507"><span class="Identifier">Http507</span></a> <span class="Other">=</span> <span class="DecNumber">507</span></pre></dt>
  755. <dd>
  756. <a class="reference external" href="https://tools.ietf.org/html/rfc4918.html">https://tools.ietf.org/html/rfc4918.html</a> WebDAV, Section 11.5
  757. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L113" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  758. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L113" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  759. </dd>
  760. </div>
  761. <div id="Http508">
  762. <dt><pre><a href="httpcore.html#Http508"><span class="Identifier">Http508</span></a> <span class="Other">=</span> <span class="DecNumber">508</span></pre></dt>
  763. <dd>
  764. <a class="reference external" href="https://tools.ietf.org/html/rfc5842.html">https://tools.ietf.org/html/rfc5842.html</a> WebDAV, Section 7.2
  765. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L114" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  766. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L114" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  767. </dd>
  768. </div>
  769. <div id="Http510">
  770. <dt><pre><a href="httpcore.html#Http510"><span class="Identifier">Http510</span></a> <span class="Other">=</span> <span class="DecNumber">510</span></pre></dt>
  771. <dd>
  772. <a class="reference external" href="https://tools.ietf.org/html/rfc2774.html">https://tools.ietf.org/html/rfc2774.html</a> Extension framework, Section 7
  773. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L115" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  774. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L115" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  775. </dd>
  776. </div>
  777. <div id="Http511">
  778. <dt><pre><a href="httpcore.html#Http511"><span class="Identifier">Http511</span></a> <span class="Other">=</span> <span class="DecNumber">511</span></pre></dt>
  779. <dd>
  780. <a class="reference external" href="https://tools.ietf.org/html/rfc6585.html">https://tools.ietf.org/html/rfc6585.html</a> Additional status code, Section 6
  781. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L116" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  782. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L116" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  783. </dd>
  784. </div>
  785. <div id="httpNewLine">
  786. <dt><pre><a href="httpcore.html#httpNewLine"><span class="Identifier">httpNewLine</span></a> <span class="Other">=</span> <span class="StringLit">&quot;\r\n&quot;</span></pre></dt>
  787. <dd>
  788. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L119" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  789. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L119" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  790. </dd>
  791. </div>
  792. </dl>
  793. </div>
  794. <div class="section" id="12">
  795. <h1><a class="toc-backref" href="#12">Procs</a></h1>
  796. <dl class="item">
  797. <div id="$-procs-all">
  798. <div id="$,HttpCode">
  799. <dt><pre><span class="Keyword">func</span> <a href="#%24%2CHttpCode"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">code</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  800. <dd>
  801. Converts the specified <tt class="docutils literal"><span class="pre"><span class="Identifier">HttpCode</span></span></tt> into a HTTP status.
  802. <p><strong class="examples_text">Example:</strong></p>
  803. <pre class="listing"><span class="Identifier">doAssert</span><span class="Punctuation">(</span><span class="Operator">$</span><span class="Identifier">Http404</span> <span class="Operator">==</span> <span class="StringLit">&quot;404 Not Found&quot;</span><span class="Punctuation">)</span></pre>
  804. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L278" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  805. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L278" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  806. </dd>
  807. </div>
  808. <div id="$,HttpHeaders">
  809. <dt><pre><span class="Keyword">func</span> <a href="#%24%2CHttpHeaders"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  810. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  811. <dd>
  812. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L152" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  813. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L152" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  814. </dd>
  815. </div>
  816. </div>
  817. <div id="==-procs-all">
  818. <div id="==,HttpCode,HttpCode">
  819. <dt><pre><span class="Keyword">func</span> <a href="#%3D%3D%2CHttpCode%2CHttpCode"><span class="Identifier">`==`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">borrow</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  820. <dd>
  821. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L347" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  822. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L347" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  823. </dd>
  824. </div>
  825. <div id="==,tuple[string,int,int],HttpVersion">
  826. <dt><pre><span class="Keyword">func</span> <a href="#%3D%3D%2Ctuple%5Bstring%2Cint%2Cint%5D%2CHttpVersion"><span class="Identifier">`==`</span></a><span class="Other">(</span><span class="Identifier">protocol</span><span class="Other">:</span> <span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">orig</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">,</span> <span class="Identifier">major</span><span class="Other">,</span> <span class="Identifier">minor</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">ver</span><span class="Other">:</span> <a href="httpcore.html#HttpVersion"><span class="Identifier">HttpVersion</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.
  827. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  828. <dd>
  829. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L264" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  830. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L264" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  831. </dd>
  832. </div>
  833. </div>
  834. <div id="[]-procs-all">
  835. <div id="[],HttpHeaders,string">
  836. <dt><pre><span class="Keyword">func</span> <a href="#%5B%5D%2CHttpHeaders%2Cstring"><span class="Identifier">`[]`</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaderValues"><span class="Identifier">HttpHeaderValues</span></a> {.
  837. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  838. <dd>
  839. <p>Returns the values associated with the given <tt class="docutils literal"><span class="pre"><span class="Identifier">key</span></span></tt>. If the returned values are passed to a procedure expecting a <tt class="docutils literal"><span class="pre"><span class="Identifier">string</span></span></tt>, the first value is automatically picked. If there are no values associated with the key, an exception is raised.</p>
  840. <p>To access multiple values of a key, use the overloaded <tt class="docutils literal"><span class="pre"><span class="Punctuation">[</span><span class="Punctuation">]</span></span></tt> below or to get all of them access the <tt class="docutils literal"><span class="pre"><span class="Identifier">table</span></span></tt> field directly.</p>
  841. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L158" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  842. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L158" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  843. </dd>
  844. </div>
  845. <div id="[],HttpHeaders,string,int">
  846. <dt><pre><span class="Keyword">func</span> <a href="#%5B%5D%2CHttpHeaders%2Cstring%2Cint"><span class="Identifier">`[]`</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">;</span> <span class="Identifier">i</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a> {.
  847. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  848. <dd>
  849. Returns the <tt class="docutils literal"><span class="pre"><span class="Identifier">i</span></span></tt>'th value associated with the given key. If there are no values associated with the key or the <tt class="docutils literal"><span class="pre"><span class="Identifier">i</span></span></tt>'th value doesn't exist, an exception is raised.
  850. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L173" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  851. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L173" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  852. </dd>
  853. </div>
  854. </div>
  855. <div id="[]=-procs-all">
  856. <div id="[]=,HttpHeaders,string,string">
  857. <dt><pre><span class="Keyword">proc</span> <a href="#%5B%5D%3D%2CHttpHeaders%2Cstring%2Cstring"><span class="Identifier">`[]=`</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">,</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  858. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  859. <dd>
  860. Sets the header entries associated with <tt class="docutils literal"><span class="pre"><span class="Identifier">key</span></span></tt> to the specified value. Replaces any existing values.
  861. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L180" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  862. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L180" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  863. </dd>
  864. </div>
  865. <div id="[]=,HttpHeaders,string,seq[string]">
  866. <dt><pre><span class="Keyword">proc</span> <a href="#%5B%5D%3D%2CHttpHeaders%2Cstring%2Cseq%5Bstring%5D"><span class="Identifier">`[]=`</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#seq"><span class="Identifier">seq</span></a><span class="Other">[</span><a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  867. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  868. <dd>
  869. Sets the header entries associated with <tt class="docutils literal"><span class="pre"><span class="Identifier">key</span></span></tt> to the specified list of values. Replaces any existing values. If <tt class="docutils literal"><span class="pre"><span class="Identifier">value</span></span></tt> is empty, deletes the header entries associated with <tt class="docutils literal"><span class="pre"><span class="Identifier">key</span></span></tt>.
  870. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L185" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  871. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L185" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  872. </dd>
  873. </div>
  874. </div>
  875. <div id="add-procs-all">
  876. <div id="add,HttpHeaders,string,string">
  877. <dt><pre><span class="Keyword">proc</span> <a href="#add%2CHttpHeaders%2Cstring%2Cstring"><span class="Identifier">add</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">,</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
  878. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  879. <dd>
  880. Adds the specified value to the specified key. Appends to any existing values associated with the key.
  881. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L194" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  882. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L194" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  883. </dd>
  884. </div>
  885. </div>
  886. <div id="clear-procs-all">
  887. <div id="clear,HttpHeaders">
  888. <dt><pre><span class="Keyword">proc</span> <a href="#clear%2CHttpHeaders"><span class="Identifier">clear</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">)</span> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  889. <dd>
  890. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L155" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  891. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L155" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  892. </dd>
  893. </div>
  894. </div>
  895. <div id="contains-procs-all">
  896. <div id="contains,set[HttpMethod],string">
  897. <dt><pre><span class="Keyword">func</span> <a href="#contains%2Cset%5BHttpMethod%5D%2Cstring"><span class="Identifier">contains</span></a><span class="Other">(</span><span class="Identifier">methods</span><span class="Other">:</span> <a href="system.html#set"><span class="Identifier">set</span></a><span class="Other">[</span><a href="httpcore.html#HttpMethod"><span class="Identifier">HttpMethod</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">x</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ValueError</span><span class="Other">]</span><span class="Other">,</span>
  898. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  899. <dd>
  900. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L275" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  901. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L275" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  902. </dd>
  903. </div>
  904. <div id="contains,HttpHeaderValues,string">
  905. <dt><pre><span class="Keyword">func</span> <a href="#contains%2CHttpHeaderValues%2Cstring"><span class="Identifier">contains</span></a><span class="Other">(</span><span class="Identifier">values</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaderValues"><span class="Identifier">HttpHeaderValues</span></a><span class="Other">;</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  906. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  907. <dd>
  908. Determines if <tt class="docutils literal"><span class="pre"><span class="Identifier">value</span></span></tt> is one of the values inside <tt class="docutils literal"><span class="pre"><span class="Identifier">values</span></span></tt>. Comparison is performed without case sensitivity.
  909. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L212" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  910. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L212" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  911. </dd>
  912. </div>
  913. </div>
  914. <div id="del-procs-all">
  915. <div id="del,HttpHeaders,string">
  916. <dt><pre><span class="Keyword">proc</span> <a href="#del%2CHttpHeaders%2Cstring"><span class="Identifier">del</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  917. <dd>
  918. Deletes the header entries associated with <tt class="docutils literal"><span class="pre"><span class="Identifier">key</span></span></tt>
  919. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L202" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  920. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L202" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  921. </dd>
  922. </div>
  923. </div>
  924. <div id="getOrDefault-procs-all">
  925. <div id="getOrDefault,HttpHeaders,string">
  926. <dt><pre><span class="Keyword">func</span> <a href="#getOrDefault%2CHttpHeaders%2Cstring"><span class="Identifier">getOrDefault</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">;</span>
  927. <span class="Identifier">default</span> <span class="Other">=</span> <span class="Operator">@</span><span class="Other">[</span><span class="StringLit">&quot;&quot;</span><span class="Other">]</span><span class="Other">.</span><span class="Identifier">HttpHeaderValues</span><span class="Other">)</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaderValues"><span class="Identifier">HttpHeaderValues</span></a> {.
  928. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  929. <dd>
  930. Returns the values associated with the given <tt class="docutils literal"><span class="pre"><span class="Identifier">key</span></span></tt>. If there are no values associated with the key, then <tt class="docutils literal"><span class="pre"><span class="Identifier">default</span></span></tt> is returned.
  931. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L222" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  932. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L222" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  933. </dd>
  934. </div>
  935. </div>
  936. <div id="hasKey-procs-all">
  937. <div id="hasKey,HttpHeaders,string">
  938. <dt><pre><span class="Keyword">func</span> <a href="#hasKey%2CHttpHeaders%2Cstring"><span class="Identifier">hasKey</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  939. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  940. <dd>
  941. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L219" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  942. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L219" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  943. </dd>
  944. </div>
  945. </div>
  946. <div id="is1xx-procs-all">
  947. <div id="is1xx,HttpCode">
  948. <dt><pre><span class="Keyword">func</span> <a href="#is1xx%2CHttpCode"><span class="Identifier">is1xx</span></a><span class="Other">(</span><span class="Identifier">code</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  949. <dd>
  950. Determines whether <tt class="docutils literal"><span class="pre"><span class="Identifier">code</span></span></tt> is a 1xx HTTP status code.
  951. <p><strong class="examples_text">Example:</strong></p>
  952. <pre class="listing"><span class="Identifier">doAssert</span> <span class="Identifier">is1xx</span><span class="Punctuation">(</span><span class="Identifier">HttpCode</span><span class="Punctuation">(</span><span class="DecNumber">103</span><span class="Punctuation">)</span><span class="Punctuation">)</span></pre>
  953. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L349" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  954. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L349" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  955. </dd>
  956. </div>
  957. </div>
  958. <div id="is2xx-procs-all">
  959. <div id="is2xx,HttpCode">
  960. <dt><pre><span class="Keyword">func</span> <a href="#is2xx%2CHttpCode"><span class="Identifier">is2xx</span></a><span class="Other">(</span><span class="Identifier">code</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  961. <dd>
  962. Determines whether <tt class="docutils literal"><span class="pre"><span class="Identifier">code</span></span></tt> is a 2xx HTTP status code.
  963. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L356" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  964. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L356" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  965. </dd>
  966. </div>
  967. </div>
  968. <div id="is3xx-procs-all">
  969. <div id="is3xx,HttpCode">
  970. <dt><pre><span class="Keyword">func</span> <a href="#is3xx%2CHttpCode"><span class="Identifier">is3xx</span></a><span class="Other">(</span><span class="Identifier">code</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  971. <dd>
  972. Determines whether <tt class="docutils literal"><span class="pre"><span class="Identifier">code</span></span></tt> is a 3xx HTTP status code.
  973. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L360" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  974. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L360" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  975. </dd>
  976. </div>
  977. </div>
  978. <div id="is4xx-procs-all">
  979. <div id="is4xx,HttpCode">
  980. <dt><pre><span class="Keyword">func</span> <a href="#is4xx%2CHttpCode"><span class="Identifier">is4xx</span></a><span class="Other">(</span><span class="Identifier">code</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  981. <dd>
  982. Determines whether <tt class="docutils literal"><span class="pre"><span class="Identifier">code</span></span></tt> is a 4xx HTTP status code.
  983. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L364" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  984. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L364" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  985. </dd>
  986. </div>
  987. </div>
  988. <div id="is5xx-procs-all">
  989. <div id="is5xx,HttpCode">
  990. <dt><pre><span class="Keyword">func</span> <a href="#is5xx%2CHttpCode"><span class="Identifier">is5xx</span></a><span class="Other">(</span><span class="Identifier">code</span><span class="Other">:</span> <a href="httpcore.html#HttpCode"><span class="Identifier">HttpCode</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#bool"><span class="Identifier">bool</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  991. <dd>
  992. Determines whether <tt class="docutils literal"><span class="pre"><span class="Identifier">code</span></span></tt> is a 5xx HTTP status code.
  993. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L368" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  994. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L368" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  995. </dd>
  996. </div>
  997. </div>
  998. <div id="len-procs-all">
  999. <div id="len,HttpHeaders">
  1000. <dt><pre><span class="Keyword">func</span> <a href="#len%2CHttpHeaders"><span class="Identifier">len</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#int"><span class="Identifier">int</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1001. <dd>
  1002. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L231" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1003. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L231" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1004. </dd>
  1005. </div>
  1006. </div>
  1007. <div id="newHttpHeaders-procs-all">
  1008. <div id="newHttpHeaders,openArray[tuple[string,string]]">
  1009. <dt><pre><span class="Keyword">func</span> <a href="#newHttpHeaders%2CopenArray%5Btuple%5Bstring%2Cstring%5D%5D"><span class="Identifier">newHttpHeaders</span></a><span class="Other">(</span><span class="Identifier">keyValuePairs</span><span class="Other">:</span> <a href="system.html#openArray"><span class="Identifier">openArray</span></a><span class="Other">[</span><span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">,</span> <span class="Identifier">val</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span><span class="Other">]</span><span class="Other">;</span>
  1010. <span class="Identifier">titleCase</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">)</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">KeyError</span><span class="Other">]</span><span class="Other">,</span>
  1011. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1012. <dd>
  1013. Returns a new <tt class="docutils literal"><span class="pre"><span class="Identifier">HttpHeaders</span></span></tt> object from an array. if <tt class="docutils literal"><span class="pre"><span class="Identifier">titleCase</span></span></tt> is set to true, headers are passed to the server in title case (e.g. &quot;Content-Length&quot;)
  1014. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L138" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1015. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L138" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1016. </dd>
  1017. </div>
  1018. <div id="newHttpHeaders">
  1019. <dt><pre><span class="Keyword">func</span> <a href="#newHttpHeaders"><span class="Identifier">newHttpHeaders</span></a><span class="Other">(</span><span class="Identifier">titleCase</span> <span class="Other">=</span> <span class="Identifier">false</span><span class="Other">)</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  1020. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1021. <dd>
  1022. Returns a new <tt class="docutils literal"><span class="pre"><span class="Identifier">HttpHeaders</span></span></tt> object. if <tt class="docutils literal"><span class="pre"><span class="Identifier">titleCase</span></span></tt> is set to true, headers are passed to the server in title case (e.g. &quot;Content-Length&quot;)
  1023. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L133" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1024. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L133" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1025. </dd>
  1026. </div>
  1027. </div>
  1028. <div id="parseHeader-procs-all">
  1029. <div id="parseHeader,string">
  1030. <dt><pre><span class="Keyword">func</span> <a href="#parseHeader%2Cstring"><span class="Identifier">parseHeader</span></a><span class="Other">(</span><span class="Identifier">line</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">key</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">,</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#seq"><span class="Identifier">seq</span></a><span class="Other">[</span><a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span><span class="Other">]</span> {.
  1031. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1032. <dd>
  1033. <p>Parses a single raw header HTTP line into key value pairs.</p>
  1034. <p>Used by <tt class="docutils literal"><span class="pre"><span class="Identifier">asynchttpserver</span></span></tt> and <tt class="docutils literal"><span class="pre"><span class="Identifier">httpclient</span></span></tt> internally and should not be used by you.</p>
  1035. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L244" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1036. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L244" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1037. </dd>
  1038. </div>
  1039. </div>
  1040. <div id="toCaseInsensitive-procs-all">
  1041. <div id="toCaseInsensitive,HttpHeaders,string">
  1042. <dt><pre><span class="Keyword">func</span> <a href="#toCaseInsensitive%2CHttpHeaders%2Cstring"><span class="Identifier">toCaseInsensitive</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">;</span> <span class="Identifier">s</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span>
  1043. <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1044. <dd>
  1045. For internal usage only. Do not use.
  1046. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L129" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1047. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L129" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1048. </dd>
  1049. </div>
  1050. </div>
  1051. </dl>
  1052. </div>
  1053. <div class="section" id="15">
  1054. <h1><a class="toc-backref" href="#15">Iterators</a></h1>
  1055. <dl class="item">
  1056. <div id="pairs-iterators-all">
  1057. <div id="pairs.i,HttpHeaders">
  1058. <dt><pre><span class="Keyword">iterator</span> <a href="#pairs.i%2CHttpHeaders"><span class="Identifier">pairs</span></a><span class="Other">(</span><span class="Identifier">headers</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaders"><span class="Identifier">HttpHeaders</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">key</span><span class="Other">,</span> <span class="Identifier">value</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a><span class="Other">]</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  1059. <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1060. <dd>
  1061. Yields each key, value pair.
  1062. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L206" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1063. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L206" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1064. </dd>
  1065. </div>
  1066. </div>
  1067. </dl>
  1068. </div>
  1069. <div class="section" id="16">
  1070. <h1><a class="toc-backref" href="#16">Converters</a></h1>
  1071. <dl class="item">
  1072. <div id="toString-converters-all">
  1073. <div id="toString.c,HttpHeaderValues">
  1074. <dt><pre><span class="Keyword">converter</span> <a href="#toString.c%2CHttpHeaderValues"><span class="Identifier">toString</span></a><span class="Other">(</span><span class="Identifier">values</span><span class="Other">:</span> <a href="httpcore.html#HttpHeaderValues"><span class="Identifier">HttpHeaderValues</span></a><span class="Other">)</span><span class="Other">:</span> <a href="system.html#string"><span class="Identifier">string</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
  1075. <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
  1076. <dd>
  1077. <a href="https://github.com/nim-lang/Nim/tree/devel/lib/pure/httpcore.nim#L170" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
  1078. <a href="https://github.com/nim-lang/Nim/edit/devel/lib/pure/httpcore.nim#L170" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
  1079. </dd>
  1080. </div>
  1081. </div>
  1082. </dl>
  1083. </div>
  1084. </div>
  1085. </div>
  1086. <div class="twelve-columns footer">
  1087. <span class="nim-sprite"></span>
  1088. <br>
  1089. <small style="color: var(--hint);">Made with Nim. Generated: 2025-01-09 12:00:08 UTC</small>
  1090. </div>
  1091. </div>
  1092. </div>
  1093. <script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
  1094. </body>
  1095. </html>