Name Description Size Coverage CI issues
BodyExtractor.cpp 6164 93 %
BodyExtractor.h 1249 100 %
ChannelInfo.cpp 2858 98 %
ChannelInfo.h 2234 100 %
Fetch.cpp 61984 79 %
Fetch.h Creates an nsIInputStream based on the fetch specifications 'extract a byte stream algorithm' - http://fetch.spec.whatwg.org/#concept-bodyinit-extract. Stores content type in out param aContentType. 11789 97 %
FetchChild.cpp 17375 88 %
FetchChild.h 3354 100 %
FetchDriver.cpp 72256 88 %
FetchDriver.h Provides callbacks to be called when response is available or on error. Implemenations usually resolve or reject the promise returned from fetch(). The callbacks can be called synchronously or asynchronously from FetchDriver::Fetch. 8420 88 %
FetchIPCTypes.h 2062 -
FetchLog.h 472 -
FetchObserver.cpp 2391 97 %
FetchObserver.h 1186 60 %
FetchParent.cpp static 16381 88 %
FetchParent.h 3313 67 %
FetchService.cpp 31512 87 %
FetchService.h FetchService is a singleton object which designed to be used in parent process main thread only. It is used to handle the special fetch requests from ServiceWorkers(by Navigation Preload) and PFetch. FetchService creates FetchInstance internally to represent each Fetch request. It supports an asynchronous fetching, FetchServicePromises is created when a Fetch starts, once the response is ready or any error happens, the FetchServicePromises would be resolved or rejected. The promises consumers can set callbacks to handle the Fetch result. 10097 100 %
FetchStreamReader.cpp static 18529 90 %
FetchStreamReader.h 6383 89 %
FetchStreamUtils.cpp 2533 100 %
FetchStreamUtils.h 1775 -
FetchTypes.ipdlh 4022 -
FetchUtil.cpp 28616 71 %
FetchUtil.h Sets outMethod to a valid HTTP request method string based on an input method. Implements checks and normalization as specified by the Fetch specification. Returns NS_ERROR_DOM_SECURITY_ERR if the method is invalid. Otherwise returns NS_OK and the normalized method via outMethod. 3722 100 %
Headers.cpp static 2557 88 %
Headers.h This Headers class is only used to represent the content facing Headers object. It is actually backed by an InternalHeaders implementation. Gecko code should NEVER use this, except in the Request and Response implementations, where they must always be created from the backing InternalHeaders object. 3922 94 %
InternalHeaders.cpp 17146 97 %
InternalHeaders.h 5943 96 %
InternalRequest.cpp 22545 87 %
InternalRequest.h The mapping of RequestDestination and nsContentPolicyType is currently as the following. RequestDestination| nsContentPolicyType ------------------+-------------------- "audio" | TYPE_INTERNAL_AUDIO "audioworklet" | TYPE_INTERNAL_AUDIOWORKLET "document" | TYPE_DOCUMENT "embed" | TYPE_INTERNAL_EMBED "font" | TYPE_FONT, TYPE_INTERNAL_FONT_PRELOAD "frame" | TYPE_INTERNAL_FRAME "iframe" | TYPE_SUBDOCUMENT, TYPE_INTERNAL_IFRAME "image" | TYPE_INTERNAL_IMAGE, TYPE_INTERNAL_IMAGE_PRELOAD, | TYPE_IMAGE, TYPE_INTERNAL_IMAGE_FAVICON, TYPE_IMAGESET, | TYPE_INTERNAL_IMAGE_NOTIFICATION "json" | TYPE_JSON, TYPE_INTERNAL_JSON_PRELOAD "manifest" | TYPE_WEB_MANIFEST "object" | TYPE_INTERNAL_OBJECT, TYPE_OBJECT "paintworklet" | TYPE_INTERNAL_PAINTWORKLET "report" | TYPE_CSP_REPORT "script" | TYPE_INTERNAL_SCRIPT, TYPE_INTERNAL_SCRIPT_PRELOAD, | TYPE_INTERNAL_MODULE, TYPE_INTERNAL_MODULE_PRELOAD, | TYPE_SCRIPT, | TYPE_INTERNAL_SERVICE_WORKER, | TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS, | TYPE_INTERNAL_CHROMEUTILS_COMPILED_SCRIPT | TYPE_INTERNAL_FRAME_MESSAGEMANAGER_SCRIPT "sharedworker" | TYPE_INTERNAL_SHARED_WORKER "serviceworker" | The spec lists this as a valid value for the enum, | however it is impossible to observe a request with this | destination value. "style" | TYPE_INTERNAL_STYLESHEET, | TYPE_INTERNAL_STYLESHEET_PRELOAD, | TYPE_STYLESHEET "text" | TYPE_TEXT, TYPE_INTERNAL_TEXT_PRELOAD "track" | TYPE_INTERNAL_TRACK "video" | TYPE_INTERNAL_VIDEO "worker" | TYPE_INTERNAL_WORKER, TYPE_INTERNAL_WORKER_STATIC_MODULE "xslt" | TYPE_XSLT "" | Default for everything else. 18850 100 %
InternalResponse.cpp static 15514 87 %
InternalResponse.h 12034 91 %
moz.build 1628 -
PFetch.ipdl 1487 -
Request.cpp static 24649 95 %
Request.h 4854 100 %
Response.cpp static 16096 90 %
Response.h 5098 100 %
<1%tests -