WithURL informs the getter the server name that will be used when fetching objects. Used in conjunction with WithTLSClientConfig to set the TLSClientConfig's server name.
(url string)
| 58 | // WithURL informs the getter the server name that will be used when fetching objects. Used in conjunction with |
| 59 | // WithTLSClientConfig to set the TLSClientConfig's server name. |
| 60 | func WithURL(url string) Option { |
| 61 | return func(opts *getterOptions) { |
| 62 | opts.url = url |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // WithAcceptHeader sets the request's Accept header as some REST APIs serve multiple content types |
| 67 | func WithAcceptHeader(header string) Option { |
no outgoing calls
searching dependent graphs…