Header adds a header to the request.
(name string, value string)
| 65 | |
| 66 | // Header adds a header to the request. |
| 67 | func (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. |
| 76 | func (s *GetScriptService) Headers(headers http.Header) *GetScriptService { |