MCPcopy
hub / github.com/gofiber/fiber / Header

Method Header

client/client.go:415–420  ·  view source on GitHub ↗

Header returns all header values associated with the provided key.

(key string)

Source from the content-addressed store, hash-verified

413
414// Header returns all header values associated with the provided key.
415func (c *Client) Header(key string) []string {
416 c.mu.RLock()
417 defer c.mu.RUnlock()
418
419 return c.header.PeekMultiple(key)
420}
421
422// AddHeader adds a single header field and its value to the client. These headers apply to all requests.
423func (c *Client) AddHeader(key, val string) *Client {

Callers 6

Test_Response_HeaderFunction · 0.45
Test_HeadFunction · 0.45
Test_OptionsFunction · 0.45
Test_Client_HeaderFunction · 0.45
Test_Request_HeaderFunction · 0.45

Calls 1

PeekMultipleMethod · 0.80

Tested by 6

Test_Response_HeaderFunction · 0.36
Test_HeadFunction · 0.36
Test_OptionsFunction · 0.36
Test_Client_HeaderFunction · 0.36
Test_Request_HeaderFunction · 0.36