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

Method Query

pine.go:614–616  ·  view source on GitHub ↗

Query returns the URL query parameter for key.

(key string)

Source from the content-addressed store, hash-verified

612
613// Query returns the URL query parameter for key.
614func (c *Ctx) Query(key string) string {
615 return c.Request.URL.Query().Get(key)
616}
617
618// JSON encodes data as JSON and writes it to the response.
619func (c *Ctx) JSON(data interface{}, status ...int) error {

Callers 3

BindQueryMethod · 0.95
AuthenticateRequestFunction · 0.80
AuthenticateAsMiddleWareFunction · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected