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

change behavior to behaviour

This commit is contained in:
mustafa 2024-12-08 09:26:08 +01:00
parent 022013b6c4
commit e0a120a11c

View file

@ -3,7 +3,7 @@
# Plain HTTP handlers. # Plain HTTP handlers.
define tpl_cowboy.http define tpl_cowboy.http
-module($(n)). -module($(n)).
-behavior(cowboy_handler). -behaviour(cowboy_handler).
-export([init/2]). -export([init/2]).
@ -14,7 +14,7 @@ endef
# Loop handlers. # Loop handlers.
define tpl_cowboy.loop define tpl_cowboy.loop
-module($(n)). -module($(n)).
-behavior(cowboy_loop). -behaviour(cowboy_loop).
-export([init/2]). -export([init/2]).
-export([info/3]). -export([info/3]).
@ -29,7 +29,7 @@ endef
# REST handlers. # REST handlers.
define tpl_cowboy.rest define tpl_cowboy.rest
-module($(n)). -module($(n)).
-behavior(cowboy_rest). -behaviour(cowboy_rest).
-export([init/2]). -export([init/2]).
-export([content_types_provided/2]). -export([content_types_provided/2]).
@ -50,7 +50,7 @@ endef
# Websocket handlers. # Websocket handlers.
define tpl_cowboy.ws define tpl_cowboy.ws
-module($(n)). -module($(n)).
-behavior(cowboy_websocket). -behaviour(cowboy_websocket).
-export([init/2]). -export([init/2]).
-export([websocket_init/1]). -export([websocket_init/1]).