MCPcopy
hub / github.com/nodejs/undici / #checkContentType

Method #checkContentType

lib/interceptor/response-error.js:18–20  ·  view source on GitHub ↗
(contentType)

Source from the content-addressed store, hash-verified

16 }
17
18 #checkContentType (contentType) {
19 return (this.#contentType ?? '').indexOf(contentType) === 0
20 }
21
22 onRequestStart (controller, context) {
23 this.#statusCode = 0

Callers 2

onResponseStartMethod · 0.95
onResponseEndMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected