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

Method SetHeader

api-prompt-options.go:65–70  ·  view source on GitHub ↗

SetHeader adds a key value pair to the options. The key-value pair will be part of the HTTP POST request headers.

(key, value string)

Source from the content-addressed store, hash-verified

63// key-value pair will be part of the HTTP POST request
64// headers.
65func (o *PromptObjectOptions) SetHeader(key, value string) {
66 if o.headers == nil {
67 o.headers = make(map[string]string)
68 }
69 o.headers[http.CanonicalHeaderKey(key)] = value
70}
71
72// toQueryValues - Convert the reqParams in Options to query string parameters.
73func (o *PromptObjectOptions) toQueryValues() url.Values {

Callers 1

PromptObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected