Lines Matching refs:Header
18 // A Header represents the key-value pairs in an HTTP header.
19 type Header map[string][]string
21 // Add adds the key, value pair to the header.
23 func (h Header) Add(key, value string) {
27 // Set sets the header entries associated with key to
30 func (h Header) Set(key, value string) {
40 func (h Header) Get(key string) string {
45 func (h Header) get(key string) string {
53 func (h Header) Del(key string) {
57 // Write writes a header in wire format.
58 func (h Header) Write(w io.Writer) error {
62 func (h Header) clone() Header {
63 h2 := make(Header, len(h))
78 // ParseTime parses a time header (such as the Date: header),
129 func (h Header) sortedKeyValues(exclude map[string]bool) (kvs []keyValues, hs *headerSorter) {
145 // WriteSubset writes a header in wire format.
147 func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error {
169 // header key s. The canonicalization converts the first
173 // If s contains a space or invalid header field bytes, it is
217 func cloneHeader(h Header) Header {
218 h2 := make(Header, len(h))