WithSocksURL is a function that returns an Option, which sets the socksURL field of the config struct.
(val string)
| 68 | |
| 69 | // WithSocksURL is a function that returns an Option, which sets the socksURL field of the config struct. |
| 70 | func WithSocksURL(val string) Option { |
| 71 | return optionFunc(func(c *config) { |
| 72 | c.socksURL = val |
| 73 | }) |
| 74 | } |
| 75 | |
| 76 | // WithBaseURL returns a new Option that sets the base URL for the client configuration. |
| 77 | // It takes a string value representing the base URL to use for requests. |
no test coverage detected