MCPcopy Create free account
hub / github.com/olivere/elastic / Header

Method Header

script_get.go:67–73  ·  view source on GitHub ↗

Header adds a header to the request.

(name string, value string)

Source from the content-addressed store, hash-verified

65
66// Header adds a header to the request.
67func (s *GetScriptService) Header(name string, value string) *GetScriptService {
68 if s.headers == nil {
69 s.headers = http.Header{}
70 }
71 s.headers.Add(name, value)
72 return s
73}
74
75// Headers specifies the headers of the request.
76func (s *GetScriptService) Headers(headers http.Header) *GetScriptService {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected