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

Method SetReqParam

api-get-options.go:99–108  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

97// supported key: see supportedQueryValues and allowedCustomQueryPrefix.
98// If an unsupported key is passed in, it will be ignored and nothing will be done.
99func (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.

Callers 2

mainFunction · 0.95

Calls 3

isCustomQueryValueFunction · 0.85
isStandardQueryValueFunction · 0.85
SetMethod · 0.45

Tested by 1