diff options
author | Loïc Hoguin <[email protected]> | 2012-08-27 13:39:59 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-08-27 13:39:59 +0200 |
commit | 6d84afd16d214c7e07d9f55e633dbcb0032473bc (patch) | |
tree | fcffa83add64d52f45746a9cf1e0f05c138b27ce /test | |
parent | d3dcaf109b225b1384fad5b17dbae9c4888c40ea (diff) | |
download | cowboy-6d84afd16d214c7e07d9f55e633dbcb0032473bc.tar.gz cowboy-6d84afd16d214c7e07d9f55e633dbcb0032473bc.tar.bz2 cowboy-6d84afd16d214c7e07d9f55e633dbcb0032473bc.zip |
Rename cowboy_http_rest to cowboy_rest
Diffstat (limited to 'test')
-rw-r--r-- | test/rest_forbidden_resource.erl | 2 | ||||
-rw-r--r-- | test/rest_nodelete_resource.erl | 2 | ||||
-rw-r--r-- | test/rest_resource_etags.erl | 2 | ||||
-rw-r--r-- | test/rest_simple_resource.erl | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/rest_forbidden_resource.erl b/test/rest_forbidden_resource.erl index eef04d0..9d3cd95 100644 --- a/test/rest_forbidden_resource.erl +++ b/test/rest_forbidden_resource.erl @@ -4,7 +4,7 @@ post_is_create/2, create_path/2, to_text/2, from_text/2]). init(_Transport, _Req, _Opts) -> - {upgrade, protocol, cowboy_http_rest}. + {upgrade, protocol, cowboy_rest}. rest_init(Req, [Forbidden]) -> {ok, Req, Forbidden}. diff --git a/test/rest_nodelete_resource.erl b/test/rest_nodelete_resource.erl index e0ece5a..8c83422 100644 --- a/test/rest_nodelete_resource.erl +++ b/test/rest_nodelete_resource.erl @@ -3,7 +3,7 @@ get_text_plain/2]). init(_Transport, _Req, _Opts) -> - {upgrade, protocol, cowboy_http_rest}. + {upgrade, protocol, cowboy_rest}. allowed_methods(Req, State) -> {['GET', 'HEAD', 'DELETE'], Req, State}. diff --git a/test/rest_resource_etags.erl b/test/rest_resource_etags.erl index 17b5eb6..43f1e05 100644 --- a/test/rest_resource_etags.erl +++ b/test/rest_resource_etags.erl @@ -2,7 +2,7 @@ -export([init/3, generate_etag/2, content_types_provided/2, get_text_plain/2]). init(_Transport, _Req, _Opts) -> - {upgrade, protocol, cowboy_http_rest}. + {upgrade, protocol, cowboy_rest}. generate_etag(Req, State) -> case cowboy_req:qs_val(<<"type">>, Req) of diff --git a/test/rest_simple_resource.erl b/test/rest_simple_resource.erl index e2c573c..97145dd 100644 --- a/test/rest_simple_resource.erl +++ b/test/rest_simple_resource.erl @@ -2,7 +2,7 @@ -export([init/3, content_types_provided/2, get_text_plain/2]). init(_Transport, _Req, _Opts) -> - {upgrade, protocol, cowboy_http_rest}. + {upgrade, protocol, cowboy_rest}. content_types_provided(Req, State) -> {[{{<<"text">>, <<"plain">>, []}, get_text_plain}], Req, State}. |