Set adds a key value pair to the options. The key-value pair will be part of the HTTP GET request headers.
(key, value string)
| 87 | // key-value pair will be part of the HTTP GET request |
| 88 | // headers. |
| 89 | func (o *GetObjectOptions) Set(key, value string) { |
| 90 | if o.headers == nil { |
| 91 | o.headers = make(map[string]string) |
| 92 | } |
| 93 | o.headers[http.CanonicalHeaderKey(key)] = value |
| 94 | } |
| 95 | |
| 96 | // SetReqParam - set request query string parameter |
| 97 | // supported key: see supportedQueryValues and allowedCustomQueryPrefix. |
no outgoing calls
no test coverage detected