SetReqParam - set 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)
| 97 | // supported key: see supportedQueryValues and allowedCustomQueryPrefix. |
| 98 | // If an unsupported key is passed in, it will be ignored and nothing will be done. |
| 99 | func (o *GetObjectOptions) SetReqParam(key, value string) { |
| 100 | if !isCustomQueryValue(key) && !isStandardQueryValue(key) { |
| 101 | // do nothing |
| 102 | return |
| 103 | } |
| 104 | if o.reqParams == nil { |
| 105 | o.reqParams = make(url.Values) |
| 106 | } |
| 107 | o.reqParams.Set(key, value) |
| 108 | } |
| 109 | |
| 110 | // AddReqParam - add request query string parameter |
| 111 | // supported key: see supportedQueryValues and allowedCustomQueryPrefix. |