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 { ...@@ -128,67 +128,67 @@ func (t *headerFieldTable) idToIndex(id uint64) uint64 {
// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-07#appendix-B // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-07#appendix-B
var staticTable = newStaticTable() var staticTable = newStaticTable()
var staticTableEntries = [...]HeaderField{ var staticTableEntries = [...]HeaderField{
HeaderField{Name: ":authority"}, {Name: ":authority"},
HeaderField{Name: ":method", Value: "GET"}, {Name: ":method", Value: "GET"},
HeaderField{Name: ":method", Value: "POST"}, {Name: ":method", Value: "POST"},
HeaderField{Name: ":path", Value: "/"}, {Name: ":path", Value: "/"},
HeaderField{Name: ":path", Value: "/index.html"}, {Name: ":path", Value: "/index.html"},
HeaderField{Name: ":scheme", Value: "http"}, {Name: ":scheme", Value: "http"},
HeaderField{Name: ":scheme", Value: "https"}, {Name: ":scheme", Value: "https"},
HeaderField{Name: ":status", Value: "200"}, {Name: ":status", Value: "200"},
HeaderField{Name: ":status", Value: "204"}, {Name: ":status", Value: "204"},
HeaderField{Name: ":status", Value: "206"}, {Name: ":status", Value: "206"},
HeaderField{Name: ":status", Value: "304"}, {Name: ":status", Value: "304"},
HeaderField{Name: ":status", Value: "400"}, {Name: ":status", Value: "400"},
HeaderField{Name: ":status", Value: "404"}, {Name: ":status", Value: "404"},
HeaderField{Name: ":status", Value: "500"}, {Name: ":status", Value: "500"},
HeaderField{Name: "accept-charset"}, {Name: "accept-charset"},
HeaderField{Name: "accept-encoding", Value: "gzip, deflate"}, {Name: "accept-encoding", Value: "gzip, deflate"},
HeaderField{Name: "accept-language"}, {Name: "accept-language"},
HeaderField{Name: "accept-ranges"}, {Name: "accept-ranges"},
HeaderField{Name: "accept"}, {Name: "accept"},
HeaderField{Name: "access-control-allow-origin"}, {Name: "access-control-allow-origin"},
HeaderField{Name: "age"}, {Name: "age"},
HeaderField{Name: "allow"}, {Name: "allow"},
HeaderField{Name: "authorization"}, {Name: "authorization"},
HeaderField{Name: "cache-control"}, {Name: "cache-control"},
HeaderField{Name: "content-disposition"}, {Name: "content-disposition"},
HeaderField{Name: "content-encoding"}, {Name: "content-encoding"},
HeaderField{Name: "content-language"}, {Name: "content-language"},
HeaderField{Name: "content-length"}, {Name: "content-length"},
HeaderField{Name: "content-location"}, {Name: "content-location"},
HeaderField{Name: "content-range"}, {Name: "content-range"},
HeaderField{Name: "content-type"}, {Name: "content-type"},
HeaderField{Name: "cookie"}, {Name: "cookie"},
HeaderField{Name: "date"}, {Name: "date"},
HeaderField{Name: "etag"}, {Name: "etag"},
HeaderField{Name: "expect"}, {Name: "expect"},
HeaderField{Name: "expires"}, {Name: "expires"},
HeaderField{Name: "from"}, {Name: "from"},
HeaderField{Name: "host"}, {Name: "host"},
HeaderField{Name: "if-match"}, {Name: "if-match"},
HeaderField{Name: "if-modified-since"}, {Name: "if-modified-since"},
HeaderField{Name: "if-none-match"}, {Name: "if-none-match"},
HeaderField{Name: "if-range"}, {Name: "if-range"},
HeaderField{Name: "if-unmodified-since"}, {Name: "if-unmodified-since"},
HeaderField{Name: "last-modified"}, {Name: "last-modified"},
HeaderField{Name: "link"}, {Name: "link"},
HeaderField{Name: "location"}, {Name: "location"},
HeaderField{Name: "max-forwards"}, {Name: "max-forwards"},
HeaderField{Name: "proxy-authenticate"}, {Name: "proxy-authenticate"},
HeaderField{Name: "proxy-authorization"}, {Name: "proxy-authorization"},
HeaderField{Name: "range"}, {Name: "range"},
HeaderField{Name: "referer"}, {Name: "referer"},
HeaderField{Name: "refresh"}, {Name: "refresh"},
HeaderField{Name: "retry-after"}, {Name: "retry-after"},
HeaderField{Name: "server"}, {Name: "server"},
HeaderField{Name: "set-cookie"}, {Name: "set-cookie"},
HeaderField{Name: "strict-transport-security"}, {Name: "strict-transport-security"},
HeaderField{Name: "transfer-encoding"}, {Name: "transfer-encoding"},
HeaderField{Name: "user-agent"}, {Name: "user-agent"},
HeaderField{Name: "vary"}, {Name: "vary"},
HeaderField{Name: "via"}, {Name: "via"},
HeaderField{Name: "www-authenticate"}, {Name: "www-authenticate"},
} }
func newStaticTable() *headerFieldTable { 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