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

Method Header

tasks_get_task.go:61–67  ·  view source on GitHub ↗

Header adds a header to the request.

(name string, value string)

Source from the content-addressed store, hash-verified

59
60// Header adds a header to the request.
61func (s *TasksGetTaskService) Header(name string, value string) *TasksGetTaskService {
62 if s.headers == nil {
63 s.headers = http.Header{}
64 }
65 s.headers.Add(name, value)
66 return s
67}
68
69// Headers specifies the headers of the request.
70func (s *TasksGetTaskService) Headers(headers http.Header) *TasksGetTaskService {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected