diff options
author | Takeru Ohta <[email protected]> | 2014-12-05 05:05:23 +0900 |
---|---|---|
committer | Takeru Ohta <[email protected]> | 2014-12-05 05:05:23 +0900 |
commit | c0672b843377cbd222919c80e8c65a4469f50f93 (patch) | |
tree | f74c5f08b08800391cad619a5503ec329f5bcddc /src/cowboy_spdy.erl | |
parent | c96abf819e20057e736afa7f22f5e4a2846abd85 (diff) | |
download | cowboy-c0672b843377cbd222919c80e8c65a4469f50f93.tar.gz cowboy-c0672b843377cbd222919c80e8c65a4469f50f93.tar.bz2 cowboy-c0672b843377cbd222919c80e8c65a4469f50f93.zip |
Add typespecs for state record in cowboy_spdy module
Diffstat (limited to 'src/cowboy_spdy.erl')
-rw-r--r-- | src/cowboy_spdy.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cowboy_spdy.erl b/src/cowboy_spdy.erl index 91c4f4a..656f414 100644 --- a/src/cowboy_spdy.erl +++ b/src/cowboy_spdy.erl @@ -54,15 +54,15 @@ -record(state, { parent = undefined :: pid(), - socket, - transport, + socket :: inet:socket(), + transport :: module(), buffer = <<>> :: binary(), - middlewares, - env, - onresponse, - peer, - zdef, - zinf, + middlewares :: [module()], + env :: cowboy_middleware:env(), + onresponse :: cowboy:onresponse_fun(), + peer :: {inet:ip_address(), inet:port_number()}, + zdef :: zlib:zstream(), + zinf :: zlib:zstream(), last_streamid = 0 :: streamid(), children = [] :: [#child{}] }). |