This code is quite old and has been moved/re-factored a few times over the years, however we can simplify this even further since we don't actually need a function to determine what NetworkStream-implementation to use.
unicorn/prefer-optional-catch-binding
Headers
IPDFStream
ignoreErrors
FontFaceObject
Metadata
class
_headersCapability
PDFNetworkStreamFullRequestReader
OptionalContentConfig
PromiseCapability
Promise.withResolvers()
workerPort
workerSrc