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

Method AddHeaders

client/client.go:441–447  ·  view source on GitHub ↗

AddHeaders adds multiple header fields and their values to the client.

(h map[string][]string)

Source from the content-addressed store, hash-verified

439
440// AddHeaders adds multiple header fields and their values to the client.
441func (c *Client) AddHeaders(h map[string][]string) *Client {
442 c.mu.Lock()
443 defer c.mu.Unlock()
444
445 c.header.AddHeaders(h)
446 return c
447}
448
449// SetHeaders method sets multiple headers field and its values at one go in the client instance.
450// These headers will be applied to all requests created from this client instance. Also it can be

Callers 6

Test_Client_HeaderFunction · 0.45
Test_Request_HeaderFunction · 0.45
Test_Request_HeadersFunction · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 6

Test_Client_HeaderFunction · 0.36
Test_Request_HeaderFunction · 0.36
Test_Request_HeadersFunction · 0.36