MCPcopy
hub / github.com/nock/nock / contentEncoding

Function contentEncoding

lib/common.js:105–108  ·  view source on GitHub ↗

* @param {Headers} headers * @param {'gzip' | 'deflate'} encoder * @returns

(headers, encoder)

Source from the content-addressed store, hash-verified

103 * @returns
104 */
105function contentEncoding(headers, encoder) {
106 const contentEncoding = headers.get('content-encoding')
107 return contentEncoding?.toString() === encoder
108}
109
110/**
111 * @param {Headers} headers

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…