add type information to state record in cowboy_spdy module