aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
diff options
context:
space:
mode:
authorJosh Allmann <[email protected]>2012-10-13 15:15:15 -0700
committerJosh Allmann <[email protected]>2012-10-13 15:15:15 -0700
commit65c5d576c85ff61b75d590545942d8a549c83e02 (patch)
tree3e1e9529d5c71a006a35bab4c94b0f7008009be2 /src/cowboy_rest.erl
parent09914c4693562bfde644b73a2ed5e6bac7362b4c (diff)
downloadcowboy-65c5d576c85ff61b75d590545942d8a549c83e02.tar.gz
cowboy-65c5d576c85ff61b75d590545942d8a549c83e02.tar.bz2
cowboy-65c5d576c85ff61b75d590545942d8a549c83e02.zip
Clarify docs for known_methods and allowed_methods.
Diffstat (limited to 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index c0decbd..61062ab 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -84,7 +84,7 @@ upgrade(_ListenerPid, Handler, Opts, Req) ->
service_available(Req, State) ->
expect(Req, State, service_available, true, fun known_methods/2, 503).
-%% known_methods/2 should return a list of atoms or binary methods.
+%% known_methods/2 should return a list of binary methods.
known_methods(Req, State=#state{method=Method}) ->
case call(Req, State, known_methods) of
no_call when Method =:= <<"HEAD">>; Method =:= <<"GET">>;
@@ -107,7 +107,7 @@ known_methods(Req, State=#state{method=Method}) ->
uri_too_long(Req, State) ->
expect(Req, State, uri_too_long, false, fun allowed_methods/2, 414).
-%% allowed_methods/2 should return a list of atoms or binary methods.
+%% allowed_methods/2 should return a list of binary methods.
allowed_methods(Req, State=#state{method=Method}) ->
case call(Req, State, allowed_methods) of
no_call when Method =:= <<"HEAD">>; Method =:= <<"GET">> ->