Permalink
Browse files

[doc] stdlib.core.web.request.HttpRequest: indicates the non standard…

… behaviour of get_headers and fix is_secured comment
  • Loading branch information...
1 parent 503663a commit 2dc993a78b0ad8a93bcc6f1c243f317582fe9d68 @OpaOnWindowsNow OpaOnWindowsNow committed Sep 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 stdlib/core/web/request/http_request.opa
@@ -140,6 +140,7 @@ HttpRequest = {{
/**
* Extract the headers of a connexion
+ * !!! WARNING !!! all '-' in header name are replaced by '_' in input and output of headers and header_get
*/
get_headers(x: HttpRequest.request): {headers: list(string); header_get: string -> option(string)} =
request = get_low_level_request(x)
@@ -155,7 +156,7 @@ HttpRequest = {{
get_headers(x).header_get("Host")
/**
- * Try to get the "Host" header of a connexion
+ * Indicates if the given request is secured
*/
is_secured(x: HttpRequest.request): bool =
request = get_low_level_request(x)

0 comments on commit 2dc993a

Please sign in to comment.