type net/http.Header
109 uses
net/http (current package)
client.go#L244: req.Header = make(Header)
client.go#L665: Header: make(Header),
clone.go#L19: return url.Values(Header(v).Clone())
clone.go#L40: Value: (map[string][]string)(Header(f.Value).Clone()),
clone.go#L62: fh2.Header = textproto.MIMEHeader(Header(fh.Header).Clone())
clone.go#L68: func cloneOrMakeHeader(hdr Header) Header {
clone.go#L71: clone = make(Header)
cookie.go#L60: func readSetCookies(h Header) []*Cookie {
cookie.go#L277: func readCookies(h Header, filter string) []*Cookie {
filetransport.go#L57: Header: make(Header),
filetransport.go#L100: func (pr *populateResponse) Header() Header {
h2_bundle.go#L3661: func (s *http2sorter) Keys(h Header) []string {
h2_bundle.go#L4470: trailer Header // accumulated trailers
h2_bundle.go#L4471: reqTrailer Header // handler's Request.Trailer
h2_bundle.go#L5823: st.trailer = make(Header)
h2_bundle.go#L5860: st.trailer = make(Header)
h2_bundle.go#L5991: rp.header = make(Header)
h2_bundle.go#L6024: header Header
h2_bundle.go#L6045: var trailer Header
h2_bundle.go#L6055: trailer = make(Header)
h2_bundle.go#L6370: handlerHeader Header // nil until called
h2_bundle.go#L6371: snapHeader Header // snapshot of handlerHeader at WriteHeader time
h2_bundle.go#L6692: func (w *http2responseWriter) Header() Header {
h2_bundle.go#L6698: rws.handlerHeader = make(Header)
h2_bundle.go#L6767: func http2cloneHeader(h Header) Header {
h2_bundle.go#L6768: h2 := make(Header, len(h))
h2_bundle.go#L6863: opts.Header = Header{}
h2_bundle.go#L6948: header Header
h2_bundle.go#L7063: func http2checkValidHTTP2RequestHeaders(h Header) error {
h2_bundle.go#L7480: trailer Header // accumulated trailers
h2_bundle.go#L7481: resTrailer *Header // client's Response.Trailer
h2_bundle.go#L9140: func (cc *http2ClientConn) encodeTrailers(trailer Header) ([]byte, error) {
h2_bundle.go#L9478: header := make(Header, len(regularFields))
h2_bundle.go#L9491: t = make(Header)
h2_bundle.go#L9598: trailer := make(Header)
h2_bundle.go#L9858: *t = make(Header)
h2_bundle.go#L10438: h Header // may be nil
h2_bundle.go#L10511: h Header
h2_bundle.go#L10589: func http2encodeHeaders(enc *hpack.Encoder, h Header, keys []string) {
header.go#L24: type Header map[string][]string
header.go#L30: func (h Header) Add(key, value string) {
header.go#L39: func (h Header) Set(key, value string) {
header.go#L49: func (h Header) Get(key string) string {
header.go#L58: func (h Header) Values(key string) []string {
header.go#L63: func (h Header) get(key string) string {
header.go#L72: func (h Header) has(key string) bool {
header.go#L80: func (h Header) Del(key string) {
header.go#L85: func (h Header) Write(w io.Writer) error {
header.go#L89: func (h Header) write(w io.Writer, trace *httptrace.ClientTrace) error {
header.go#L94: func (h Header) Clone() Header {
header.go#L105: h2 := make(Header, len(h))
header.go#L173: func (h Header) sortedKeyValues(exclude map[string]bool) (kvs []keyValues, hs *headerSorter) {
header.go#L192: func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error {
header.go#L196: func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptrace.ClientTrace) error {
http.go#L133: Header Header
request.go#L174: Header Header
request.go#L285: Trailer Header
request.go#L560: func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitForContinue func() bool) (err error) {
request.go#L894: Header: make(Header),
request.go#L1091: req.Header = Header(mimeHeader)
response.go#L51: Header Header
response.go#L110: Trailer Header
response.go#L195: resp.Header = Header(mimeHeader)
response.go#L214: func fixPragmaCacheControl(header Header) {
response.go#L362: func isProtocolSwitchResponse(code int, h Header) bool {
response.go#L368: func isProtocolSwitchHeader(h Header) bool {
server.go#L116: Header() Header
server.go#L356: header Header
server.go#L450: handlerHeader Header
server.go#L526: func (w *response) finalTrailers() Header {
server.go#L527: var t Header
server.go#L531: t = make(Header)
server.go#L538: t = make(Header)
server.go#L1052: handlerHeader: make(Header),
server.go#L1087: func (w *response) Header() Header {
server.go#L3387: h: make(Header),
server.go#L3432: h Header
server.go#L3452: func (tw *timeoutWriter) Header() Header { return tw.h }
transfer.go#L67: Header Header
transfer.go#L68: Trailer Header
transfer.go#L437: Header Header
transfer.go#L447: Trailer Header
transfer.go#L669: func fixLength(isResponse bool, status int, requestMethod string, header Header, chunked bool) (int64, error) {
transfer.go#L742: func shouldClose(major, minor int, header Header, removeCloseHeader bool) bool {
transfer.go#L761: func fixTrailer(header Header, chunked bool) (Header, error) {
transfer.go#L778: trailer := make(Header)
transfer.go#L940: mergeSetHeader(&rr.Trailer, Header(hdr))
transfer.go#L942: mergeSetHeader(&rr.Trailer, Header(hdr))
transfer.go#L947: func mergeSetHeader(dst *Header, src Header) {
transport.go#L249: ProxyConnectHeader Header
transport.go#L258: GetProxyConnectHeader func(ctx context.Context, proxyURL *url.URL, target string) (Header, error)
transport.go#L465: extra Header // extra headers to write, or nil
transport.go#L473: func (tr *transportRequest) extraHeaders() Header {
transport.go#L475: tr.extra = make(Header)
transport.go#L1666: pconn.mutateHeaderFunc = func(h Header) {
transport.go#L1672: var hdr Header
transport.go#L1684: hdr = make(Header)
transport.go#L1937: mutateHeaderFunc func(Header)
nhooyr.io/websocket
accept.go#L294: func headerContainsTokenIgnoreCase(h http.Header, key, token string) bool {
accept.go#L308: func websocketExtensions(h http.Header) []websocketExtension {
accept.go#L331: func headerTokens(h http.Header, key string) []string {
dial.go#L31: HTTPHeader http.Header
dial.go#L71: o.HTTPHeader = http.Header{}
dial.go#L268: func verifyServerExtensions(copts *compressionOptions, h http.Header) (*compressionOptions, error) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |