0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Add typespecs for state record in cowboy_spdy module

This commit is contained in:
Takeru Ohta 2014-12-05 05:05:23 +09:00
parent c96abf819e
commit c0672b8433

View file

@ -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{}]
}).