MCPcopy
hub / github.com/elastic/go-elasticsearch / WithDisableMetaHeader

Function WithDisableMetaHeader

options.go:90–95  ·  view source on GitHub ↗

WithDisableMetaHeader disables the X-Elastic-Client-Meta header sent with every request.

()

Source from the content-addressed store, hash-verified

88// WithDisableMetaHeader disables the X-Elastic-Client-Meta header sent with
89// every request.
90func 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

Calls

no outgoing calls