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

Method SetAppInfo

api.go:355–361  ·  api.go::Client.SetAppInfo

SetAppInfo adds custom application name and version to the User-Agent header for all requests. This helps identify your application in server logs and metrics. Parameters: - appName: Name of the application - appVersion: Version of the application Both parameters must be non-empty for the custom U

(appName, appVersion string)

Source from the content-addressed store, hash-verified

353//
354// Both parameters must be non-empty for the custom User-Agent to be set.
355func (c *Client) SetAppInfo(appName, appVersion string) {
356 // if app name and version not set, we do not set a new user agent.
357 if appName != "" && appVersion != "" {
358 c.appInfo.appName = appName
359 c.appInfo.appVersion = appVersion
360 }
361}
362
363// TraceOn enables HTTP request and response tracing for debugging purposes.
364// All HTTP traffic will be written to the provided output stream.

Callers 7

TestGetObjectCoreFunction · 0.80
TestGetBucketPolicyFunction · 0.80
TestCoreCopyObjectFunction · 0.80
TestCoreCopyObjectPartFunction · 0.80
TestCorePutObjectFunction · 0.80
NewClientFunction · 0.80

Calls

no outgoing calls

Tested by 6

TestGetObjectCoreFunction · 0.64
TestGetBucketPolicyFunction · 0.64
TestCoreCopyObjectFunction · 0.64
TestCoreCopyObjectPartFunction · 0.64
TestCorePutObjectFunction · 0.64