MCPcopy
hub / github.com/NVIDIA/aistore / getObjectOptParams

Function getObjectOptParams

api/client.go:69–81  ·  view source on GitHub ↗
(options GetObjectInput)

Source from the content-addressed store, hash-verified

67}
68
69func getObjectOptParams(options GetObjectInput) (w io.Writer, q url.Values, hdr http.Header) {
70 w = io.Discard
71 if options.Writer != nil {
72 w = options.Writer
73 }
74 if len(options.Query) != 0 {
75 q = options.Query
76 }
77 if len(options.Header) != 0 {
78 hdr = options.Header
79 }
80 return
81}
82
83func SetAuthToken(r *http.Request, token string) {
84 if token != "" {

Callers 5

GetObjectS3Function · 0.85
GetObjectFunction · 0.85
GetObjectReaderFunction · 0.85
GetObjectWithValidationFunction · 0.85
GetObjectWithRespFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected