MCPcopy Create free account
hub / github.com/expressjs/method-override / createQueryGetter

Function createQueryGetter

index.js:100–106  ·  view source on GitHub ↗

* Create a getter for the given query key name.

(key)

Source from the content-addressed store, hash-verified

98 */
99
100function createQueryGetter (key) {
101 return function (req, res) {
102 var url = parseurl(req)
103 var query = querystring.parse(url.query || '')
104 return query[key]
105 }
106}
107
108/**
109 * Create a getter for the given header name.

Callers 1

createGetterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…