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

Method Set

api-get-options.go:89–94  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

87// key-value pair will be part of the HTTP GET request
88// headers.
89func (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.

Callers 9

testGetObjectS3ZipFunction · 0.95
SetMatchETagMethod · 0.95
SetMatchETagExceptMethod · 0.95
SetUnmodifiedMethod · 0.95
SetModifiedMethod · 0.95
SetRangeMethod · 0.95
HeaderMethod · 0.45
SetReqParamMethod · 0.45
toQueryValuesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected