MCPcopy Index your code
hub / github.com/apache/pouchdb / addHttpParam

Function addHttpParam

lib/index.es.js:8247–8256  ·  view source on GitHub ↗
(paramName, opts, params, asJson)

Source from the content-addressed store, hash-verified

8245 }
8246
8247 function addHttpParam(paramName, opts, params, asJson) {
8248 // add an http param from opts to params, optionally json-encoded
8249 let val = opts[paramName];
8250 if (typeof val !== 'undefined') {
8251 if (asJson) {
8252 val = encodeURIComponent(JSON.stringify(val));
8253 }
8254 params.push(paramName + '=' + val);
8255 }
8256 }
8257
8258 function coerceInteger(integerCandidate) {
8259 if (typeof integerCandidate !== 'undefined') {

Callers 1

httpQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…