MCPcopy Create free account
hub / github.com/imroc/req / RegularFields

Method RegularFields

internal/http2/frame.go:1502–1509  ·  view source on GitHub ↗

RegularFields returns the regular (non-pseudo) header fields of mh. The caller does not own the returned slice.

()

Source from the content-addressed store, hash-verified

1500// RegularFields returns the regular (non-pseudo) header fields of mh.
1501// The caller does not own the returned slice.
1502func (mh *MetaHeadersFrame) RegularFields() []hpack.HeaderField {
1503 for i, hf := range mh.Fields {
1504 if !hf.IsPseudo() {
1505 return mh.Fields[i:]
1506 }
1507 }
1508 return nil
1509}
1510
1511// PseudoFields returns the pseudo header fields of mh.
1512// The caller does not own the returned slice.

Callers 2

handleResponseMethod · 0.80
processTrailersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected