Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
onResponseStart
Method · 0.95
onResponseEnd
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected