// Copyright 2014 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package http2import ()var (commonBuildOncesync.OncecommonLowerHeadermap[string]string// Go-Canonical-Case -> lower-casecommonCanonHeadermap[string]string// lower-case -> Go-Canonical-Case)func () {commonBuildOnce.Do(buildCommonHeaderMaps)}func () { := []string{"accept","accept-charset","accept-encoding","accept-language","accept-ranges","age","access-control-allow-credentials","access-control-allow-headers","access-control-allow-methods","access-control-allow-origin","access-control-expose-headers","access-control-max-age","access-control-request-headers","access-control-request-method","allow","authorization","cache-control","content-disposition","content-encoding","content-language","content-length","content-location","content-range","content-type","cookie","date","etag","expect","expires","from","host","if-match","if-modified-since","if-none-match","if-unmodified-since","last-modified","link","location","max-forwards","origin","proxy-authenticate","proxy-authorization","range","referer","refresh","retry-after","server","set-cookie","strict-transport-security","trailer","transfer-encoding","user-agent","vary","via","www-authenticate","x-forwarded-for","x-forwarded-proto", }commonLowerHeader = make(map[string]string, len())commonCanonHeader = make(map[string]string, len())for , := range { := http.CanonicalHeaderKey()commonLowerHeader[] = commonCanonHeader[] = }}func ( string) ( string, bool) {buildCommonHeaderMapsOnce()if , := commonLowerHeader[]; {return , true }returnasciiToLower()}func ( string) string {buildCommonHeaderMapsOnce()if , := commonCanonHeader[]; {return }returnhttp.CanonicalHeaderKey()}
The pages are generated with Goldsv0.4.9. (GOOS=linux GOARCH=amd64)