WithAllowedHostnames sets the list of allowed hostnames for HTTP requests User-provided hostnames are appended to BaseAllowedHostnames
(hostnames ...string)
| 68 | // WithAllowedHostnames sets the list of allowed hostnames for HTTP requests |
| 69 | // User-provided hostnames are appended to BaseAllowedHostnames |
| 70 | func WithAllowedHostnames(hostnames ...string) Option { |
| 71 | return func(opts *Options) { |
| 72 | opts.AllowedHostnames = append(opts.AllowedHostnames, hostnames...) |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | // WithIncludeRawData sets whether to include raw input/output data in results |
| 77 | func WithIncludeRawData(include bool) Option { |
no outgoing calls