aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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{}]
}).