0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Rename handler modules to _h

This commit is contained in:
Herman Singh 2018-09-07 13:48:43 -04:00 committed by Loïc Hoguin
parent 8045f7a998
commit 86cb105679
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
28 changed files with 28 additions and 28 deletions

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Chunked hello world handler. %% @doc Chunked hello world handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Compress response handler. %% @doc Compress response handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{'_', toppage_handler, []} {'_', toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Cookie handler. %% @doc Cookie handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc GET echo handler. %% @doc GET echo handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc POST echo handler. %% @doc POST echo handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/eventsource", eventsource_handler, []}, {"/eventsource", eventsource_h, []},
{"/", cowboy_static, {priv_file, eventsource, "index.html"}} {"/", cowboy_static, {priv_file, eventsource, "index.html"}}
]} ]}
]), ]),

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc EventSource emitter. %% @doc EventSource emitter.
-module(eventsource_handler). -module(eventsource_h).
-export([init/2]). -export([init/2]).
-export([info/3]). -export([info/3]).

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Directory handler. %% @doc Directory handler.
-module(directory_handler). -module(directory_h).
%% REST Callbacks %% REST Callbacks
-export([init/2]). -export([init/2]).

View file

@ -15,7 +15,7 @@ start(_Type, _Args) ->
{'_', [ {'_', [
{"/[...]", cowboy_static, {priv_dir, file_server, "", [ {"/[...]", cowboy_static, {priv_dir, file_server, "", [
{mimetypes, cow_mimetypes, all}, {mimetypes, cow_mimetypes, all},
{dir_handler, directory_handler} {dir_handler, directory_h}
]}} ]}}
]} ]}
]), ]),

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Hello world handler. %% @doc Hello world handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Handler with basic HTTP authorization. %% @doc Handler with basic HTTP authorization.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).
-export([content_types_provided/2]). -export([content_types_provided/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Hello world handler. %% @doc Hello world handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).
-export([content_types_provided/2]). -export([content_types_provided/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/[:paste_id]", toppage_handler, []} {"/[:paste_id]", toppage_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Pastebin handler. %% @doc Pastebin handler.
-module(toppage_handler). -module(toppage_h).
%% Standard callbacks. %% Standard callbacks.
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@
start(_Type, _Args) -> start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", toppage_handler, []} {"/", toppage_h, []}
]} ]}
]), ]),
PrivDir = code:priv_dir(ssl_hello_world), PrivDir = code:priv_dir(ssl_hello_world),

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Hello world handler. %% @doc Hello world handler.
-module(toppage_handler). -module(toppage_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@ start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", cowboy_static, {priv_file, upload, "index.html"}}, {"/", cowboy_static, {priv_file, upload, "index.html"}},
{"/upload", upload_handler, []} {"/upload", upload_h, []}
]} ]}
]), ]),
{ok, _} = cowboy:start_clear(http, [{port, 8080}], #{ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{

View file

@ -1,7 +1,7 @@
%% Feel free to use, reuse and abuse the code in this file. %% Feel free to use, reuse and abuse the code in this file.
%% @doc Upload handler. %% @doc Upload handler.
-module(upload_handler). -module(upload_h).
-export([init/2]). -export([init/2]).

View file

@ -13,7 +13,7 @@ start(_Type, _Args) ->
Dispatch = cowboy_router:compile([ Dispatch = cowboy_router:compile([
{'_', [ {'_', [
{"/", cowboy_static, {priv_file, websocket, "index.html"}}, {"/", cowboy_static, {priv_file, websocket, "index.html"}},
{"/websocket", ws_handler, []}, {"/websocket", ws_h, []},
{"/static/[...]", cowboy_static, {priv_dir, websocket, "static"}} {"/static/[...]", cowboy_static, {priv_dir, websocket, "static"}}
]} ]}
]), ]),

View file

@ -1,4 +1,4 @@
-module(ws_handler). -module(ws_h).
-export([init/2]). -export([init/2]).
-export([websocket_init/1]). -export([websocket_init/1]).