WithDisableMetaHeader disables the X-Elastic-Client-Meta header sent with every request.
()
| 88 | // WithDisableMetaHeader disables the X-Elastic-Client-Meta header sent with |
| 89 | // every request. |
| 90 | func WithDisableMetaHeader() Option { |
| 91 | return Option{apply: func(o *clientOptions) error { |
| 92 | o.disableMetaHeader = true |
| 93 | return nil |
| 94 | }} |
| 95 | } |
| 96 | |
| 97 | // WithAutoDrainBody enables automatic draining of the response body on Close. |
| 98 | // When enabled, calling Close on the response body will automatically read |
no outgoing calls