Skip to content
This repository
Browse code

Rename cowboy_http_protocol to cowboy_protocol

  • Loading branch information...
commit 9e2622becb4d1a37d410f484a14ef32101e560ab 1 parent cc2e084
Loïc Hoguin authored August 27, 2012
4  src/cowboy.erl
@@ -24,14 +24,14 @@
24 24
 start_http(Ref, NbAcceptors, TransOpts, ProtoOpts)
25 25
 		when is_integer(NbAcceptors), NbAcceptors > 0 ->
26 26
 	ranch:start_listener(Ref, NbAcceptors,
27  
-		ranch_tcp, TransOpts, cowboy_http_protocol, ProtoOpts).
  27
+		ranch_tcp, TransOpts, cowboy_protocol, ProtoOpts).
28 28
 
29 29
 %% @doc Start an HTTPS listener.
30 30
 -spec start_https(any(), non_neg_integer(), any(), any()) -> {ok, pid()}.
31 31
 start_https(Ref, NbAcceptors, TransOpts, ProtoOpts)
32 32
 		when is_integer(NbAcceptors), NbAcceptors > 0 ->
33 33
 	ranch:start_listener(Ref, NbAcceptors,
34  
-		ranch_ssl, TransOpts, cowboy_http_protocol, ProtoOpts).
  34
+		ranch_ssl, TransOpts, cowboy_protocol, ProtoOpts).
35 35
 
36 36
 %% @doc Stop a listener.
37 37
 -spec stop_listener(any()) -> ok.
2  src/cowboy_http_static.erl
@@ -173,7 +173,7 @@
173 173
 -include("http.hrl").
174 174
 -include_lib("kernel/include/file.hrl").
175 175
 
176  
-%% cowboy_http_protocol callbacks
  176
+%% cowboy_protocol callbacks
177 177
 -export([init/3]).
178 178
 
179 179
 %% cowboy_http_rest callbacks
2  src/cowboy_http_websocket.erl
@@ -138,7 +138,7 @@ upgrade_error(Req) ->
138 138
 		Req#http_req{resp_state=waiting}),
139 139
 	closed.
140 140
 
141  
-%% @see cowboy_http_protocol:ensure_response/1
  141
+%% @see cowboy_protocol:ensure_response/1
142 142
 -spec upgrade_denied(#http_req{}) -> closed.
143 143
 upgrade_denied(#http_req{resp_state=done}) ->
144 144
 	closed;
2  src/cowboy_http_protocol.erl → src/cowboy_protocol.erl
@@ -32,7 +32,7 @@
32 32
 %%
33 33
 %% @see cowboy_dispatcher
34 34
 %% @see cowboy_http_handler
35  
--module(cowboy_http_protocol).
  35
+-module(cowboy_protocol).
36 36
 
37 37
 %% API.
38 38
 -export([start_link/4]).
2  test/http_SUITE.erl
@@ -489,7 +489,7 @@ http10_hostless(Config) ->
489 489
 	Name = list_to_atom("http10_hostless_" ++ integer_to_list(Port10)),
490 490
 	ranch:start_listener(Name, 5,
491 491
 		?config(transport, Config), ?config(opts, Config) ++ [{port, Port10}],
492  
-		cowboy_http_protocol, [
  492
+		cowboy_protocol, [
493 493
 			{dispatch, [{'_', [
494 494
 				{[<<"http1.0">>, <<"hostless">>], http_handler, []}]}]},
495 495
 			{max_keepalive, 50},

0 notes on commit 9e2622b

Please sign in to comment.
Something went wrong with that request. Please try again.