MCPcopy Create free account
hub / github.com/gogs/gogs / Header

Method Header

internal/httplib/httplib.go:167–170  ·  view source on GitHub ↗

Header add header item string in request.

(key, value string)

Source from the content-addressed store, hash-verified

165
166// Header add header item string in request.
167func (r *Request) Header(key, value string) *Request {
168 r.req.Header.Set(key, value)
169 return r
170}
171
172func (r *Request) Headers() http.Header {
173 return r.req.Header

Callers 15

getResponseMethod · 0.95
deliverMethod · 0.80
SetLinkHeaderMethod · 0.80
ServeContentMethod · 0.80
ContexterFunction · 0.80
runWebFunction · 0.80
serveDownloadMethod · 0.80
authenticateFunction · 0.80
responseJSONFunction · 0.80
retrieveFeedsFunction · 0.80
askCredentialsFunction · 0.80
HTTPContexterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected