implement SPDYv2/3 parser