diff options
author | Loïc Hoguin <[email protected]> | 2014-03-26 19:05:59 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-03-26 19:05:59 +0100 |
commit | 17af50812c47f5dec7e02e443c551b9697715729 (patch) | |
tree | 40684eb74e67302078f4552fab0bbd1a9dbe2d01 /src/cowboy_spdy.erl | |
parent | 9110ee83fe47e4c41b6c001b9ae401979f8ebe4c (diff) | |
download | cowboy-17af50812c47f5dec7e02e443c551b9697715729.tar.gz cowboy-17af50812c47f5dec7e02e443c551b9697715729.tar.bz2 cowboy-17af50812c47f5dec7e02e443c551b9697715729.zip |
Remove outdated comments, all edoc, plus a few minor tweaks
Diffstat (limited to 'src/cowboy_spdy.erl')
-rw-r--r-- | src/cowboy_spdy.erl | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/cowboy_spdy.erl b/src/cowboy_spdy.erl index 7deb3b8..64ec950 100644 --- a/src/cowboy_spdy.erl +++ b/src/cowboy_spdy.erl @@ -12,10 +12,6 @@ %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -%% @doc SPDY protocol handler. -%% -%% Note that there is no need to monitor these processes when using Cowboy as -%% an application as it already supervises them under the listener supervisor. -module(cowboy_spdy). %% API. @@ -75,7 +71,6 @@ %% API. -%% @doc Start a SPDY protocol process. -spec start_link(any(), inet:socket(), module(), any()) -> {ok, pid()}. start_link(Ref, Socket, Transport, Opts) -> proc_lib:start_link(?MODULE, init, @@ -83,15 +78,13 @@ start_link(Ref, Socket, Transport, Opts) -> %% Internal. -%% @doc Faster alternative to proplists:get_value/3. -%% @private +%% Faster alternative to proplists:get_value/3. get_value(Key, Opts, Default) -> case lists:keyfind(Key, 1, Opts) of {_, Value} -> Value; _ -> Default end. -%% @private -spec init(pid(), ranch:ref(), inet:socket(), module(), opts()) -> ok. init(Parent, Ref, Socket, Transport, Opts) -> process_flag(trap_exit, true), @@ -394,7 +387,6 @@ execute(Req, Env, [Middleware|Tail]) -> cowboy_req:maybe_reply(Status, Req2) end. -%% @private -spec resume(cowboy_middleware:env(), [module()], module(), module(), [any()]) -> ok. resume(Env, Tail, Module, Function, Args) -> |