Name Description Size Coverage
AltDataOutputStreamChild.cpp stabilize 5166 74 %
AltDataOutputStreamChild.h 1598 100 %
AltDataOutputStreamParent.cpp 2173 90 %
AltDataOutputStreamParent.h 1772 100 %
AlternateServices.cpp RFC 7838 Alternative Services http://httpwg.org/http-extensions/opsec.html note that connections currently do not do mixed-scheme (the I attribute in the ConnectionInfo prevents it) but could, do not honor tls-commit and should not, and always require authentication 41905 89 %
AlternateServices.h Alt-Svc allows separation of transport routing from the origin host without using a proxy. See https://httpwg.github.io/http-extensions/alt-svc.html and https://tools.ietf.org/html/draft-ietf-httpbis-alt-svc-06 Nice To Have Future Enhancements:: flush on network change event when we have an indicator use established https channel for http instead separate of conninfo hash pin via http-tls header clear based on origin when a random fail happens not just 421 upon establishment of channel, cancel and retry trans that have not yet written anything persistent storage (including private browsing filter) memory reporter for cache, but this is rather tiny 9851 73 %
AltServiceChild.cpp 3067 0 %
AltServiceChild.h 1314 0 %
AltServiceParent.cpp 1992 0 %
AltServiceParent.h 1245 0 %
AltSvcTransactionChild.cpp 2331 0 %
AltSvcTransactionChild.h 1054 0 %
AltSvcTransactionParent.cpp 2170 0 %
AltSvcTransactionParent.h 1451 0 %
ASpdySession.cpp Currently supported is h2 1530 100 %
ASpdySession.h 4271 78 %
BackgroundChannelRegistrar.cpp 3646 84 %
BackgroundChannelRegistrar.h 2175 0 %
BackgroundDataBridgeChild.cpp 1788 0 %
BackgroundDataBridgeChild.h 1374 0 %
BackgroundDataBridgeParent.cpp 2682 0 %
BackgroundDataBridgeParent.h 1353 0 %
binary_http 100 %
BinaryHttpRequest.cpp 1224 100 %
BinaryHttpRequest.h 1421 100 %
CacheControlParser.cpp 3482 96 %
CacheControlParser.h 1220 -
CacheEntryWriteHandleChild.h CacheEntryWriteHandleChild is a wrapper for nsICacheEntry, for the asynchronous OpenAlternativeOutputStream call. 1031 100 %
CacheEntryWriteHandleParent.h CacheEntryWriteHandleParent is a wrapper for nsICacheEntry, for the asynchronous OpenAlternativeOutputStream call. 1332 100 %
Capsule.cpp 4698 96 %
Capsule.h 8322 99 %
CapsuleDecoder.cpp 1577 94 %
CapsuleDecoder.h 1164 -
CapsuleEncoder.cpp 6235 98 %
CapsuleEncoder.h 1801 100 %
CapsuleParser.cpp 7538 85 %
CapsuleParser.h 2762 100 %
ClassOfService.h 2068 95 %
components.conf 2100 -
ConnectionAttempt.cpp 1558 100 %
ConnectionAttempt.h 4028 83 %
ConnectionAttemptPool.cpp 7031 86 %
ConnectionAttemptPool.h 1759 100 %
ConnectionDiagnostics.cpp 9091 0 %
ConnectionEntry.cpp 38689 83 %
ConnectionEntry.h 11925 100 %
ConnectionEstablisher.cpp 25403 83 %
ConnectionEstablisher.h 7416 94 %
ConnectionHandle.cpp 2806 93 %
ConnectionHandle.h 1338 100 %
DnsAndConnectSocket.cpp 53842 84 %
DnsAndConnectSocket.h State: INIT: initial state. From this state: 1) change the state to RESOLVING and start the primary DNS lookup if mSkipDnsResolution is false, 2) or the lookup is skip and the state changes to CONNECTING and start the backup timer. 3) or changes to DONE in case of an error. RESOLVING: the primary DNS resolution is in progress. From this state we transition into CONNECTING or DONE. CONNECTING: We change to this state when the primary connection has started. At that point the backup timer is started. ONE_CONNECTED: We change into this state when one of the connections is connected and the second is in progres. DONE Events: INIT_EVENT: Start the primary dns resolution (if mSkipDnsResolution is false), otherwise start the primary connection. RESOLVED_PRIMARY_EVENT: the primary DNS resolution is done. This event may be resent due to DNS retries CONNECTED_EVENT: A connecion (primary or backup) is done 8501 93 %
EarlyHintPreconnect.cpp 2893 89 %
EarlyHintPreconnect.h 773 -
EarlyHintPreloader.cpp aDeleteEntry 31195 89 %
EarlyHintPreloader.h 7407 100 %
EarlyHintRegistrar.cpp aDeleteEntry 3761 88 %
EarlyHintRegistrar.h Registrar for pairing EarlyHintPreloader and HttpChannelParent via earlyHintPreloaderId. EarlyHintPreloader has to be registered first. EarlyHintPreloader::OnParentReady will be invoked to notify the EarlyHintpreloader about the existence of the associated HttpChannelParent. 2556 -
EarlyHintsService.cpp 5616 86 %
EarlyHintsService.h 1459 100 %
happy_eyeballs_glue 83 %
HappyEyeballsConnectionAttempt.cpp 87203 92 %
HappyEyeballsConnectionAttempt.h 17232 100 %
HappyEyeballsConnMgrDelegate.h 3805 100 %
HappyEyeballsTransaction.cpp aCallback 13424 88 %
HappyEyeballsTransaction.h 9079 100 %
HPKEConfigManager.sys.mjs Fetches and caches HPKE (Hybrid Public Key Encryption) configuration blobs from remote URLs. 2503 93 %
http2_huffman_table.txt 17733 -
Http2Compression.cpp 45171 82 %
Http2Compression.h 6405 84 %
Http2HuffmanIncoming.h THIS FILE IS AUTO-GENERATED. DO NOT EDIT! 45422 100 %
Http2HuffmanOutgoing.h THIS FILE IS AUTO-GENERATED. DO NOT EDIT! 5286 -
Http2Session.cpp 154624 65 %
Http2Session.h HTTP/2 framing 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Length (16) | Type (8) | Flags (8) | +-+-------------+---------------+-------------------------------+ |R| Stream Identifier (31) | +-+-------------------------------------------------------------+ | Frame Data (0...) ... +---------------------------------------------------------------+ 26967 95 %
Http2Stream.cpp 5564 92 %
Http2Stream.h 2239 71 %
Http2StreamBase.cpp stablize 48485 76 %
Http2StreamBase.h 13053 90 %
Http2StreamTunnel.cpp 20588 73 %
Http2StreamTunnel.h 4428 95 %
Http2WebTransportSession.cpp 25565 58 %
Http2WebTransportSession.h 8526 76 %
Http2WebTransportStream.cpp 15466 74 %
Http2WebTransportStream.h 3760 63 %
Http3ConnectUDPStream.cpp 10877 63 %
Http3ConnectUDPStream.h 3098 59 %
Http3Session.cpp 120933 79 %
Http3Session.h 23040 91 %
Http3Stream.cpp 16261 83 %
Http3Stream.h SendStreamState: While sending request: - PREPARING_HEADERS: In this state we are collecting the headers and in some cases also waiting to be able to create a new stream. We need to read all headers into a buffer before calling Http3Session::TryActivating. Neqo may not have place for a new stream if it hits MAX_STREAMS limit. In that case the steam will be queued and dequeue when neqo can again create new stream (RequestsCreatable will be called). If transaction has data to send state changes to SENDING_BODY, otherwise the state transfers to READING_HEADERS. - SENDING_BODY: The stream will be in this state while the transaction is sending request body. Http3Session::SendRequestBody will be call to give the data to neqo. After SENDING_BODY, the state transfers to READING_HEADERS. - EARLY_RESPONSE: The server may send STOP_SENDING frame with error HTTP_NO_ERROR. That error means that the server is not interested in the request body. In this state the server will just ignore the request body. 5675 100 %
Http3StreamBase.h 3020 82 %
Http3StreamTunnel.cpp 23128 73 %
Http3StreamTunnel.h 3948 69 %
Http3WebTransportSession.cpp 24036 81 %
Http3WebTransportSession.h 5423 92 %
Http3WebTransportStream.cpp 20738 72 %
Http3WebTransportStream.h 3915 42 %
HttpAuthUtils.cpp host: bar.com foo.bar.com foobar.com foo.bar.com bar.com pref: bar.com bar.com bar.com .bar.com .bar.com result: accept accept reject accept reject 4717 65 %
HttpAuthUtils.h Tries to match the given URI against the value of a given pref The pref should be in pseudo-BNF format. url-list base-url ( base-url "," LWS )* base-url ( scheme-part | host-part | scheme-part host-part ) scheme-part scheme "://" host-part host [":" port] for example: "https://, http://office.foo.com" Will return true if the URI matches any of the patterns, or false otherwise. 922 -
HttpBackgroundChannelChild.cpp 15913 66 %
HttpBackgroundChannelChild.h 5771 33 %
HttpBackgroundChannelParent.cpp Helper class for continuing the AsyncOpen procedure on main thread. 17555 89 %
HttpBackgroundChannelParent.h 5146 67 %
HttpBaseChannel.cpp 234701 89 %
HttpBaseChannel.h This class is a partial implementation of nsIHttpChannel. It contains code shared by nsHttpChannel and HttpChannelChild. - Note that this class has nothing to do with nsBaseChannel, which is an earlier effort at a base class for channels that somehow never made it all the way to the HTTP channel. 49823 95 %
HttpChannelChild.cpp 124510 88 %
HttpChannelChild.h 20923 44 %
HttpChannelParams.ipdlh 2105 -
HttpChannelParent.cpp 83460 87 %
HttpChannelParent.h 14349 0 %
HttpConnectionBase.cpp 6559 97 %
HttpConnectionBase.h 12490 80 %
HttpConnectionMgrChild.cpp 6196 0 %
HttpConnectionMgrChild.h 2122 0 %
HttpConnectionMgrParent.cpp 10271 0 %
HttpConnectionMgrParent.h 1417 0 %
HttpConnectionMgrShell.h 10710 -
HttpConnectionUDP.cpp 45227 79 %
HttpConnectionUDP.h 5858 67 %
HttpInfo.cpp 783 50 %
HttpInfo.h Calls getConnectionData method in nsHttpConnectionMgr. 690 -
HttpLog.h This file should ONLY be #included by source (.cpp) files in the /http directory, not headers (.h). If you need to use LOG() in a .h file, call PR_LOG directly. This file should also be the first #include in your file. Yes, this is kludgy. ***************************************************************************** 2639 -
HTTPSRecordResolver.cpp 7572 86 %
HTTPSRecordResolver.h 1652 100 %
HttpTrafficAnalyzer.cpp 11014 87 %
HttpTrafficAnalyzer.h Y=0 - all system principal connections. 8987 -
HttpTransactionChild.cpp 23596 0 %
HttpTransactionChild.h 5193 0 %
HttpTransactionParent.cpp stabilize 32166 0 %
HttpTransactionParent.h 7864 0 %
HttpTransactionShell.h 12386 0 %
HttpWinUtils.cpp merge 3879 0 %
HttpWinUtils.h 431 -
InterceptedHttpChannel.cpp 54706 82 %
InterceptedHttpChannel.h InterceptionTimeStamps is used to record the time stamps of the interception. The general usage: Step 1. Initialize the InterceptionTimeStamps; InterceptionTimeStamps::Init(channel); Step 2. Record time for each stage InterceptionTimeStamps::RecordTime(); or InterceptionTimeStamps::RecordTime(timeStamp); Step 3. Record time for the last stage with the final status InterceptionTimeStamps::RecordTime(InterceptionTimeStamps::Synthesized); 11464 13 %
make_incoming_tables.py 5725 -
make_outgoing_tables.py /* * THIS FILE IS AUTO-GENERATED. DO NOT EDIT! */ #ifndef mozilla_net_Http2HuffmanOutgoing_h #define mozilla_net_Http2HuffmanOutgoing_h #include <cstdint> namespace mozilla { namespace net { struct HuffmanOutgoingEntry { uint32_t mValue; uint8_t mLength; }; static const HuffmanOutgoingEntry HuffmanOutgoing[] = { 1487 -
metrics.yaml 90718 -
MicrosoftEntraSSOUtils.h 673 -
MicrosoftEntraSSOUtils.mm 15143 -
MockHttpAuth.cpp 1643 100 %
MockHttpAuth.h 814 100 %
moz.build 9080 -
NetworkErrorLogging.sys.mjs Implements the W3C Network Error Logging (NEL) specification (https://www.w3.org/TR/network-error-logging/). 14080 -
NetworkMarker.cpp 19152 61 %
NetworkMarker.h 1571 -
nsAHttpConnection.cpp stablize 1579 100 %
nsAHttpConnection.h 15529 80 %
nsAHttpTransaction.h Xlib headers insist on this for some reason... Nuke it because it'll override our member name 14851 44 %
nsCORSListenerProxy.cpp 65948 94 %
nsCORSListenerProxy.h 5077 100 %
nsHttp.cpp 36941 83 %
nsHttp.h 18338 97 %
nsHttpActivityDistributor.cpp 10170 65 %
nsHttpActivityDistributor.h 1174 100 %
nsHttpAtomList.inc This file contains the list of all HTTP atoms See nsHttp.h for access to the atoms. It is designed to be used as inline input to nsHttp.cpp *only* through the magic of C preprocessing. All entries must be enclosed in the macro HTTP_ATOM which will have cruel and unusual things done to it. The first argument to HTTP_ATOM is the C++ name of the atom. The second argument to HTTP_ATOM is the string value of the atom. **** 4709 -
nsHttpAuthCache.cpp 13826 81 %
nsHttpAuthCache.h 8161 93 %
nsHttpAuthManager.cpp static 3755 75 %
nsHttpAuthManager.h 857 100 %
nsHttpBasicAuth.cpp 3491 97 %
nsHttpBasicAuth.h 1040 100 %
nsHttpChannel.cpp 453926 85 %
nsHttpChannel.h 42052 97 %
nsHttpChannelAuthProvider.cpp 56457 91 %
nsHttpChannelAuthProvider.h Following three methods return NS_ERROR_IN_PROGRESS when nsIAuthPrompt2.asyncPromptAuth method is called. This result indicates the user's decision will be gathered in a callback and is not an actual error. 7168 89 %
nsHttpChunkedDecoder.cpp 5386 89 %
nsHttpChunkedDecoder.h 1488 100 %
nsHttpConnection.cpp 95939 85 %
nsHttpConnection.h 15920 91 %
nsHttpConnectionInfo.cpp 26821 82 %
nsHttpConnectionInfo.h 17996 98 %
nsHttpConnectionMgr.cpp 148429 82 %
nsHttpConnectionMgr.h 22010 67 %
nsHttpDigestAuth.cpp 23626 87 %
nsHttpDigestAuth.h 3281 100 %
nsHttpHandler.cpp ;q=0.1" #define ACCEPT_HEADER_JSON "application/json, 107184 82 %
nsHttpHandler.h FRAMECHECK_LAX - no check FRAMECHECK_BARELY - allows: 1) that chunk-encoding does not have the last 0-size chunk. So, if a chunked-encoded transfer ends on exactly a chunk boundary we consider that fine. This will allows us to accept buggy servers that do not send the last chunk. It will make us not detect a certain amount of cut-offs. 2) When receiving a gzipped response, we consider a gzip stream that doesn't end fine according to the gzip decompressing state machine to be a partial transfer. If a gzipped transfer ends fine according to the decompressor, we do not check for size unalignments. This allows to allow HTTP gzipped responses where the Content-Length is not the same as the actual contents. 3) When receiving HTTP that isn't content-encoded/compressed (like in case 2) and not chunked (like in case 1), perform the size comparison between Content-Length: and the actual size received and consider a mismatch to mean a NS_ERROR_NET_PARTIAL_TRANSFER error. FRAMECHECK_STRICT_CHUNKED - This is the same as FRAMECHECK_BARELY only we enforce that the last 0-size chunk is received in case 1). FRAMECHECK_STRICT - we also do not allow case 2) and 3) from FRAMECHECK_BARELY. 36477 96 %
nsHttpHeaderArray.cpp 16817 95 %
nsHttpHeaderArray.h 12464 98 %
nsHttpNTLMAuth.cpp 22650 77 %
nsHttpNTLMAuth.h 750 100 %
nsHttpRequestHead.cpp = nsHttpHeaderArray::eFilterAll 11259 67 %
nsHttpRequestHead.h 6244 100 %
nsHttpResponseHead.cpp 41998 89 %
nsHttpResponseHead.h Xlib headers insist on this for some reason... Nuke it because it'll override our member name 11954 96 %
nsHttpTransaction.cpp 151225 83 %
nsHttpTransaction.h 30488 94 %
nsIBackgroundChannelRegistrar.idl Registrar for pairing HttpChannelParent and HttpBackgroundChannelParent via channel Id. HttpChannelParent::OnBackgroundParentReady and HttpBackgroundChannelParent::LinkToChannel will be invoked to notify the existence of associated channel object. 2303 -
nsIBinaryHttp.idl 1707 -
nsICORSPreflightCache.idl nsICORSPreflightCache Provides methods for iterating across the preflight cache entries for access and modification 874 -
nsICORSPreflightCacheEntry.idl nsICORSPreflightCacheEntry Defines an interface representing a cache entry in the preflight cache. 1442 -
nsICorsPreflightCallback.h 694 -
nsIEarlyHintObserver.idl This method is called when the transaction has early hint (i.e. the '103 Early Hint' informational response) headers. 574 -
nsIHttpActivityObserver.idl nsIHttpActivityObserver This interface provides a way for http activities to be reported to observers. 9587 -
nsIHttpAuthCache.idl nsIHttpAuthCache Provides methods for iterating across the HTTP authentication cache entries for access and modification 743 -
nsIHttpAuthenticableChannel.idl If the channel being authenticated is using SSL. 3775 -
nsIHttpAuthenticator.idl nsIHttpAuthenticator Interface designed to allow for pluggable HTTP authentication modules. Implementations are registered under the ContractID: "@mozilla.org/network/http-authenticator;1?scheme=<auth-scheme>" where <auth-scheme> is the lower-cased value of the authentication scheme found in the server challenge per the rules of RFC 2617. 9980 -
nsIHttpAuthEntry.idl nsIHttpAuthIdentity Defines an interface (domain, user, and password) identifying the HTTP authentication cache entry. 1121 -
nsIHttpAuthManager.idl nsIHttpAuthManager This service provides access to cached HTTP authentication user credentials (domain, username, password) for sites visited during the current browser session. This interface exists to provide other HTTP stacks with the ability to share HTTP authentication credentials with Necko. This is currently used by the Java plugin (version 1.5 and higher) to avoid duplicate authentication prompts when the Java client fetches content from a HTTP site that the user has already logged into. 4812 -
nsIHttpChannel.idl nsIHttpChannel This interface allows for the modification of HTTP request parameters and the inspection of the resulting HTTP response status and headers when they become available. 19992 -
nsIHttpChannelAuthProvider.idl nsIHttpChannelAuthProvider This interface is intended for providing authentication for http-style channels, like nsIHttpChannel and nsIWebSocket, which implement the nsIHttpAuthenticableChannel interface. When requesting pages AddAuthorizationHeaders MUST be called in order to get the http cached headers credentials. When the request is unsuccessful because of receiving either a 401 or 407 http response code ProcessAuthentication MUST be called and the page MUST be requested again with the new credentials that the user has provided. After a successful request disconnect MUST be called. 2909 -
nsIHttpChannelChild.idl 1361 -
nsIHttpChannelInternal.idl The callback interface for nsIHttpChannelInternal::HTTPUpgrade() 19912 -
nsIHttpHeaderVisitor.idl Implement this interface to visit http headers. 818 -
nsIHttpProtocolHandler.idl Get the HTTP advertised user agent string. 8114 -
nsINetworkErrorLogging.idl Called by nsHttpChannel to register a NEL policy 842 -
nsIObliviousHttp.idl 3361 -
nsIObliviousHttpChannel.idl nsIObliviousHttpChannel This interface allows consumers to differentiate between the relayChannel request that transports the OHTTP payload and the virtual OHTTP channel represented by the nsIObliviousHttpChannel implementation. 931 -
nsIReplacedHttpResponse.idl nsIHttpChannel This interface allows to create an object holding mocked data which will replace the response for a channel. To override the channel's response use nsIHttpChannelInternal::setResponseOverride with an instance of nsIReplacedHttpResponse as parameter. 1117 -
nsITlsHandshakeListener.idl 610 -
nsIWellKnownOpportunisticUtils.idl For parsing JSON from http://httpwg.org/http-extensions/opsec.html 677 -
nsServerTiming.cpp 3624 93 %
nsServerTiming.h 1203 100 %
NullHttpChannel.cpp 24860 3 %
NullHttpChannel.h 1890 100 %
NullHttpTransaction.cpp 7060 85 %
NullHttpTransaction.h 2731 80 %
oblivious_http 91 %
ObliviousHTTP.sys.mjs @typedef {object} OHTTPResponse An object with properties mimicking that of a Response. @property {boolean} ok Indicates whether the request was successful. @property {number} status Representation of the HTTP status code. @property {?Headers} headers Representing the response headers. @property {() => ?JSON} json Returns the parsed JSON response body. @property {() => ?Blob} blob Returns a Blob response body. 7531 18 %
ObliviousHttpChannel.cpp 26754 43 %
ObliviousHttpChannel.h 2247 75 %
ObliviousHttpService.cpp 7659 90 %
ObliviousHttpService.h 1247 100 %
OpaqueResponseUtils.cpp 23420 87 %
OpaqueResponseUtils.h 6341 85 %
PAltDataOutputStream.ipdl 1144 -
PAltService.ipdl 1095 -
PAltSvcTransaction.ipdl 480 -
ParentChannelListener.cpp 10026 77 %
ParentChannelListener.h 2712 100 %
PBackgroundDataBridge.ipdl 1016 -
PCacheEntryWriteHandle.ipdl 414 -
PendingTransactionInfo.cpp 4674 91 %
PendingTransactionInfo.h 1875 86 %
PendingTransactionQueue.cpp = false 10004 90 %
PendingTransactionQueue.h 4063 100 %
PHttpBackgroundChannel.ipdl 2774 -
PHttpChannel.ipdl 5513 -
PHttpChannelParams.h 10658 75 %
PHttpConnectionMgr.ipdl 1712 -
PHttpTransaction.ipdl 4589 -
QuicSocketControl.cpp 4162 95 %
QuicSocketControl.h 1959 100 %
README Darin Fisher 4209 -
ReplacedHttpResponse.cpp 1860 94 %
ReplacedHttpResponse.h 1196 100 %
SpeculativeTransaction.cpp 3809 96 %
SpeculativeTransaction.h 2666 100 %
TimingStruct.h 1249 -
TlsHandshaker.cpp 13255 89 %
TlsHandshaker.h 3173 94 %
TLSTransportLayer.cpp 29820 69 %
TLSTransportLayer.h 6375 86 %
TRRServiceChannel.cpp 51920 66 %
TRRServiceChannel.h 6914 18 %
WebTransportCertificateVerifier.cpp out 10049 20 %
WebTransportCertificateVerifier.h 772 -
WebTransportFlowControl.cpp 2501 100 %
WebTransportFlowControl.h 9052 97 %
WebTransportSessionBase.cpp 1068 100 %
WebTransportSessionBase.h 3113 75 %
WebTransportStreamBase.cpp 2145 98 %
WebTransportStreamBase.h 4429 81 %
WellKnownOpportunisticUtils.sys.mjs 699 -
ZeroRttHandle.cpp aStream 14005 88 %
ZeroRttHandle.h 8067 100 %