diff options
author | Loïc Hoguin <[email protected]> | 2012-09-15 01:31:51 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-09-15 01:31:51 +0200 |
commit | d9e76d59a1cb47ec47bda5bf2a3e48a2da39ae45 (patch) | |
tree | 61b1982f0bc8b5808d78826fd328344bb3e9eb1c /src/cowboy_rest.erl | |
parent | 4040a9f72d080786f59533c398e2e5662087d92d (diff) | |
download | cowboy-d9e76d59a1cb47ec47bda5bf2a3e48a2da39ae45.tar.gz cowboy-d9e76d59a1cb47ec47bda5bf2a3e48a2da39ae45.tar.bz2 cowboy-d9e76d59a1cb47ec47bda5bf2a3e48a2da39ae45.zip |
Change type #http_req{} to cowboy_req:req()
This removes cowboy_static's dependency on http.hrl.
Diffstat (limited to 'src/cowboy_rest.erl')
-rw-r--r-- | src/cowboy_rest.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl index 2f3a2e4..36a97f3 100644 --- a/src/cowboy_rest.erl +++ b/src/cowboy_rest.erl @@ -54,8 +54,8 @@ %% You do not need to call this function manually. To upgrade to the REST %% protocol, you simply need to return <em>{upgrade, protocol, {@module}}</em> %% in your <em>cowboy_http_handler:init/3</em> handler function. --spec upgrade(pid(), module(), any(), #http_req{}) - -> {ok, #http_req{}} | close. +-spec upgrade(pid(), module(), any(), Req) + -> {ok, Req} | close when Req::cowboy_req:req(). upgrade(_ListenerPid, Handler, Opts, Req) -> try case erlang:function_exported(Handler, rest_init, 2) of |