WithCompatibilityMode enables the compatibility header on every request.
()
| 79 | |
| 80 | // WithCompatibilityMode enables the compatibility header on every request. |
| 81 | func WithCompatibilityMode() Option { |
| 82 | return Option{apply: func(o *clientOptions) error { |
| 83 | o.compatibilityMode = true |
| 84 | return nil |
| 85 | }} |
| 86 | } |
| 87 | |
| 88 | // WithDisableMetaHeader disables the X-Elastic-Client-Meta header sent with |
| 89 | // every request. |
no outgoing calls