Commit 5b58a9c3 authored by Mikio Hara's avatar Mikio Hara Committed by Brad Fitzpatrick

http2/hpack: gofmt -w -s

Change-Id: I7267334f191a6da9929235e79ee71c412e95ed57
Reviewed-on: https://go-review.googlesource.com/44050
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarMatt Layher <mdlayher@gmail.com>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 445979b9
......@@ -128,67 +128,67 @@ func (t *headerFieldTable) idToIndex(id uint64) uint64 {
// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-07#appendix-B
var staticTable = newStaticTable()
var staticTableEntries = [...]HeaderField{
HeaderField{Name: ":authority"},
HeaderField{Name: ":method", Value: "GET"},
HeaderField{Name: ":method", Value: "POST"},
HeaderField{Name: ":path", Value: "/"},
HeaderField{Name: ":path", Value: "/index.html"},
HeaderField{Name: ":scheme", Value: "http"},
HeaderField{Name: ":scheme", Value: "https"},
HeaderField{Name: ":status", Value: "200"},
HeaderField{Name: ":status", Value: "204"},
HeaderField{Name: ":status", Value: "206"},
HeaderField{Name: ":status", Value: "304"},
HeaderField{Name: ":status", Value: "400"},
HeaderField{Name: ":status", Value: "404"},
HeaderField{Name: ":status", Value: "500"},
HeaderField{Name: "accept-charset"},
HeaderField{Name: "accept-encoding", Value: "gzip, deflate"},
HeaderField{Name: "accept-language"},
HeaderField{Name: "accept-ranges"},
HeaderField{Name: "accept"},
HeaderField{Name: "access-control-allow-origin"},
HeaderField{Name: "age"},
HeaderField{Name: "allow"},
HeaderField{Name: "authorization"},
HeaderField{Name: "cache-control"},
HeaderField{Name: "content-disposition"},
HeaderField{Name: "content-encoding"},
HeaderField{Name: "content-language"},
HeaderField{Name: "content-length"},
HeaderField{Name: "content-location"},
HeaderField{Name: "content-range"},
HeaderField{Name: "content-type"},
HeaderField{Name: "cookie"},
HeaderField{Name: "date"},
HeaderField{Name: "etag"},
HeaderField{Name: "expect"},
HeaderField{Name: "expires"},
HeaderField{Name: "from"},
HeaderField{Name: "host"},
HeaderField{Name: "if-match"},
HeaderField{Name: "if-modified-since"},
HeaderField{Name: "if-none-match"},
HeaderField{Name: "if-range"},
HeaderField{Name: "if-unmodified-since"},
HeaderField{Name: "last-modified"},
HeaderField{Name: "link"},
HeaderField{Name: "location"},
HeaderField{Name: "max-forwards"},
HeaderField{Name: "proxy-authenticate"},
HeaderField{Name: "proxy-authorization"},
HeaderField{Name: "range"},
HeaderField{Name: "referer"},
HeaderField{Name: "refresh"},
HeaderField{Name: "retry-after"},
HeaderField{Name: "server"},
HeaderField{Name: "set-cookie"},
HeaderField{Name: "strict-transport-security"},
HeaderField{Name: "transfer-encoding"},
HeaderField{Name: "user-agent"},
HeaderField{Name: "vary"},
HeaderField{Name: "via"},
HeaderField{Name: "www-authenticate"},
{Name: ":authority"},
{Name: ":method", Value: "GET"},
{Name: ":method", Value: "POST"},
{Name: ":path", Value: "/"},
{Name: ":path", Value: "/index.html"},
{Name: ":scheme", Value: "http"},
{Name: ":scheme", Value: "https"},
{Name: ":status", Value: "200"},
{Name: ":status", Value: "204"},
{Name: ":status", Value: "206"},
{Name: ":status", Value: "304"},
{Name: ":status", Value: "400"},
{Name: ":status", Value: "404"},
{Name: ":status", Value: "500"},
{Name: "accept-charset"},
{Name: "accept-encoding", Value: "gzip, deflate"},
{Name: "accept-language"},
{Name: "accept-ranges"},
{Name: "accept"},
{Name: "access-control-allow-origin"},
{Name: "age"},
{Name: "allow"},
{Name: "authorization"},
{Name: "cache-control"},
{Name: "content-disposition"},
{Name: "content-encoding"},
{Name: "content-language"},
{Name: "content-length"},
{Name: "content-location"},
{Name: "content-range"},
{Name: "content-type"},
{Name: "cookie"},
{Name: "date"},
{Name: "etag"},
{Name: "expect"},
{Name: "expires"},
{Name: "from"},
{Name: "host"},
{Name: "if-match"},
{Name: "if-modified-since"},
{Name: "if-none-match"},
{Name: "if-range"},
{Name: "if-unmodified-since"},
{Name: "last-modified"},
{Name: "link"},
{Name: "location"},
{Name: "max-forwards"},
{Name: "proxy-authenticate"},
{Name: "proxy-authorization"},
{Name: "range"},
{Name: "referer"},
{Name: "refresh"},
{Name: "retry-after"},
{Name: "server"},
{Name: "set-cookie"},
{Name: "strict-transport-security"},
{Name: "transfer-encoding"},
{Name: "user-agent"},
{Name: "vary"},
{Name: "via"},
{Name: "www-authenticate"},
}
func newStaticTable() *headerFieldTable {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment