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

Method SetBaseURL

client/client.go:406–412  ·  view source on GitHub ↗

SetBaseURL sets the base URL prefix for all requests made by the client.

(url string)

Source from the content-addressed store, hash-verified

404
405// SetBaseURL sets the base URL prefix for all requests made by the client.
406func (c *Client) SetBaseURL(url string) *Client {
407 c.mu.Lock()
408 defer c.mu.Unlock()
409
410 c.baseURL = url
411 return c
412}
413
414// Header returns all header values associated with the provided key.
415func (c *Client) Header(key string) []string {

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65