AddReqParam - add request query string parameter supported key: see supportedQueryValues and allowedCustomQueryPrefix. If an unsupported key is passed in, it will be ignored and nothing will be done.
(key, value string)
| 111 | // supported key: see supportedQueryValues and allowedCustomQueryPrefix. |
| 112 | // If an unsupported key is passed in, it will be ignored and nothing will be done. |
| 113 | func (o *GetObjectOptions) AddReqParam(key, value string) { |
| 114 | if !isCustomQueryValue(key) && !isStandardQueryValue(key) { |
| 115 | // do nothing |
| 116 | return |
| 117 | } |
| 118 | if o.reqParams == nil { |
| 119 | o.reqParams = make(url.Values) |
| 120 | } |
| 121 | o.reqParams.Add(key, value) |
| 122 | } |
| 123 | |
| 124 | // SetMatchETag - set match etag. |
| 125 | func (o *GetObjectOptions) SetMatchETag(etag string) error { |