aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorMagnus Klaar <[email protected]>2011-09-29 16:53:47 +0200
committerMagnus Klaar <[email protected]>2011-09-29 23:13:00 +0200
commit973e67a53ce73ef71073715f1bced5bd6be6c9a1 (patch)
tree8aa0898784cfa0b38e0d37c92158a300867fcc95 /src/cowboy_http_req.erl
parenteff94772018b77b969b3a3afe465789c8aa7bef1 (diff)
downloadcowboy-973e67a53ce73ef71073715f1bced5bd6be6c9a1.tar.gz
cowboy-973e67a53ce73ef71073715f1bced5bd6be6c9a1.tar.bz2
cowboy-973e67a53ce73ef71073715f1bced5bd6be6c9a1.zip
add note to split_path/1 and path/1 on escaped /
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 5b63599..2e37079 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -88,7 +88,11 @@ raw_host(Req) ->
port(Req) ->
{Req#http_req.port, Req}.
-%% @doc Return the tokens for the path requested.
+%% @doc Return the path segments for the path requested.
+%%
+%% Follwing RFC2396, this function may return path segments containing any
+%% character, including <em>/</em> if, and only if, a <em>/</em> was escaped
+%% and part of a path segment in the path requested.
-spec path(#http_req{}) -> {cowboy_dispatcher:path_tokens(), #http_req{}}.
path(Req) ->
{Req#http_req.path, Req}.