(options GetObjectInput)
| 67 | } |
| 68 | |
| 69 | func 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 | |
| 83 | func SetAuthToken(r *http.Request, token string) { |
| 84 | if token != "" { |
no outgoing calls
no test coverage detected