akane.idx 2.2 KB

12345678910111213141516171819202122232425
  1. Simple usage akane.html#simple-usage Simple usage
  2. ServerRef akane.html#ServerRef akane: ServerRef
  3. AnyHttpMethod akane.html#AnyHttpMethod akane: AnyHttpMethod
  4. BaseHttpMethod akane.html#BaseHttpMethod akane: BaseHttpMethod
  5. Example akane.html#example Example
  6. newServer akane.html#newServer,string,uint16 akane: newServer(address: string = "127.0.0.1"; port: uint16 = 5000): ServerRef
  7. Example akane.html#example Example
  8. loadtemplate akane.html#loadtemplate,string,JsonNode akane: loadtemplate(name: string; json: JsonNode = %*{}): Future[string]
  9. parseQuery akane.html#parseQuery,Request akane: parseQuery(request: Request): Future[JsonNode]
  10. newCookie akane.html#newCookie,ServerRef,string,string,string akane: newCookie(server: ServerRef; key, value: string; domain = ""): HttpHeaders
  11. password2hash akane.html#password2hash,string akane: password2hash(password: string): Future[string]
  12. validatePassword akane.html#validatePassword,string,string akane: validatePassword(password, hashpassword: string): Future[bool]
  13. pages akane.html#pages.m,ServerRef,untyped akane: pages(server: ServerRef; body: untyped): untyped
  14. Example akane.html#example Example
  15. send akane.html#send.m,untyped,untyped,HttpHeaders akane: send(request, message: untyped; http_code = Http200;\n headers: HttpHeaders = newHttpHeaders()): untyped
  16. Example akane.html#example Example
  17. answer akane.html#answer.m,untyped,untyped,HttpHeaders akane: answer(request, message: untyped; http_code = Http200;\n headers: HttpHeaders = newHttpHeaders()): untyped
  18. Example akane.html#example Example
  19. error akane.html#error.m,untyped,untyped,HttpHeaders akane: error(request, message: untyped; http_code = Http404;\n headers: HttpHeaders = newHttpHeaders()): untyped
  20. Example akane.html#example Example
  21. sendJson akane.html#sendJson.m,untyped,untyped akane: sendJson(request, message: untyped; http_code = Http200): untyped
  22. Example akane.html#example Example
  23. sendPlaintext akane.html#sendPlaintext.m,untyped,untyped akane: sendPlaintext(request, message: untyped; http_code = Http200): untyped
  24. Example akane.html#example Example
  25. start akane.html#start.m,ServerRef akane: start(server: ServerRef): untyped