MCPcopy Create free account
hub / github.com/a-h/rest / HasQueryParameter

Method HasQueryParameter

api.go:283–286  ·  view source on GitHub ↗

HasQueryParameter configures a query parameter for the route.

(name string, q QueryParam)

Source from the content-addressed store, hash-verified

281
282// HasQueryParameter configures a query parameter for the route.
283func (rm *Route) HasQueryParameter(name string, q QueryParam) *Route {
284 rm.Params.Query[name] = q
285 return rm
286}
287
288// HasTags sets the tags for the route.
289func (rm *Route) HasTags(tags []string) *Route {

Callers 1

TestSchemaFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSchemaFunction · 0.64