MCPcopy
hub / github.com/minio/minio-go / AddReqParam

Method AddReqParam

api-get-options.go:113–122  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

111// supported key: see supportedQueryValues and allowedCustomQueryPrefix.
112// If an unsupported key is passed in, it will be ignored and nothing will be done.
113func (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.
125func (o *GetObjectOptions) SetMatchETag(etag string) error {

Callers 1

Calls 3

isCustomQueryValueFunction · 0.85
isStandardQueryValueFunction · 0.85
AddMethod · 0.45

Tested by 1