mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Rename cowboy_http_req to cowboy_req
This commit is contained in:
parent
9e2622becb
commit
d3dcaf109b
26 changed files with 115 additions and 115 deletions
|
@ -5,12 +5,12 @@
|
|||
-export([init/3, handle/2, terminate/2]).
|
||||
|
||||
init({_Transport, http}, Req, _Opts) ->
|
||||
{ok, Req2} = cowboy_http_req:reply(<<"666 Init Shutdown Testing">>,
|
||||
{ok, Req2} = cowboy_req:reply(<<"666 Init Shutdown Testing">>,
|
||||
[{'Connection', <<"close">>}], Req),
|
||||
{shutdown, Req2, undefined}.
|
||||
|
||||
handle(Req, State) ->
|
||||
{ok, Req2} = cowboy_http_req:reply(200, [], "Hello world!", Req),
|
||||
{ok, Req2} = cowboy_req:reply(200, [], "Hello world!", Req),
|
||||
{ok, Req2, State}.
|
||||
|
||||
terminate(_Req, _State) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue