refactored out http2 constants and response parser.