aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_spdy.erl
diff options
context:
space:
mode:
authorTakeru Ohta <[email protected]>2014-12-05 05:05:23 +0900
committerTakeru Ohta <[email protected]>2014-12-05 05:05:23 +0900
commitc0672b843377cbd222919c80e8c65a4469f50f93 (patch)
treef74c5f08b08800391cad619a5503ec329f5bcddc /src/cowboy_spdy.erl
parentc96abf819e20057e736afa7f22f5e4a2846abd85 (diff)
downloadcowboy-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.erl16
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{}]
}).