this is used for both request and response in spdy