Add HPACK test cases
This commit is contained in:
		
							
								
								
									
										342
									
								
								fixtures/hpack/raw-data/story_03.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										342
									
								
								fixtures/hpack/raw-data/story_03.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,342 @@ | ||||
| { | ||||
|   "context": "request", | ||||
|   "cases": [ | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "baidu.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "baidu.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/favicon.ico" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "www.baidu.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "www.baidu.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/img/baidu_sylogo1.gif" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "image/png,image/*;q=0.8,*/*;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "referer": "http://www.baidu.com/" | ||||
|         }, | ||||
|         { | ||||
|           "cookie": "BAIDUID=B6136AC10EBE0A8FCD216EB64C4C1A5C:FG=1" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "www.baidu.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/cache/global/img/gs.gif" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "image/png,image/*;q=0.8,*/*;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "referer": "http://www.baidu.com/" | ||||
|         }, | ||||
|         { | ||||
|           "cookie": "BAIDUID=B6136AC10EBE0A8FCD216EB64C4C1A5C:FG=1" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "s1.bdstatic.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/r/www/cache/global/js/tangram-1.3.4c1.0.js" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "*/*" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "referer": "http://www.baidu.com/" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "s1.bdstatic.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/r/www/cache/global/js/home-1.8.js" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "*/*" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "referer": "http://www.baidu.com/" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "s1.bdstatic.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/r/www/cache/user/js/u-1.3.4.js" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "*/*" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "referer": "http://www.baidu.com/" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "s1.bdstatic.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/r/www/img/i-1.0.0.png" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "image/png,image/*;q=0.8,*/*;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "referer": "http://www.baidu.com/" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     { | ||||
|       "headers": [ | ||||
|         { | ||||
|           ":method": "GET" | ||||
|         }, | ||||
|         { | ||||
|           ":scheme": "http" | ||||
|         }, | ||||
|         { | ||||
|           ":authority": "www.baidu.com" | ||||
|         }, | ||||
|         { | ||||
|           ":path": "/favicon.ico" | ||||
|         }, | ||||
|         { | ||||
|           "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0" | ||||
|         }, | ||||
|         { | ||||
|           "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" | ||||
|         }, | ||||
|         { | ||||
|           "accept-language": "en-US,en;q=0.5" | ||||
|         }, | ||||
|         { | ||||
|           "accept-encoding": "gzip, deflate" | ||||
|         }, | ||||
|         { | ||||
|           "connection": "keep-alive" | ||||
|         }, | ||||
|         { | ||||
|           "cookie": "BAIDUID=B6136AC10EBE0A8FCD216EB64C4C1A5C:FG=1" | ||||
|         } | ||||
|       ] | ||||
|     } | ||||
|   ] | ||||
| } | ||||
		Reference in New Issue
	
	Block a user