SetHeaderNonCanonical set a header for the request which key is a non-canonical key (keep case unchanged), only valid for HTTP/1.1.
(key, value string)
| 499 | // SetHeaderNonCanonical set a header for the request which key is a |
| 500 | // non-canonical key (keep case unchanged), only valid for HTTP/1.1. |
| 501 | func (r *Request) SetHeaderNonCanonical(key, value string) *Request { |
| 502 | if r.Headers == nil { |
| 503 | r.Headers = make(http.Header) |
| 504 | } |
| 505 | r.Headers[key] = append(r.Headers[key], value) |
| 506 | return r |
| 507 | } |
| 508 | |
| 509 | const ( |
| 510 | // HeaderOderKey is the key of header order, which specifies the order |
no outgoing calls