MCPcopy Create free account
hub / github.com/BryanMwangi/pine / Header

Method Header

pine.go:542–544  ·  view source on GitHub ↗

Header returns the request header value for the given key.

(key string)

Source from the content-addressed store, hash-verified

540
541// Header returns the request header value for the given key.
542func (c *Ctx) Header(key string) string {
543 return c.Request.Header.Get(key)
544}
545
546// IP returns the client IP address, checking proxy headers first.
547func (c *Ctx) IP() string {

Callers 11

SetCookieMethod · 0.80
JSONMethod · 0.80
RenderMethod · 0.80
SetHeaderMethod · 0.80
requireAPIKeyFunction · 0.80
NewFunction · 0.80

Calls 1

GetMethod · 0.45