gecko-dev/netwerk/protocol/http
2018-11-19 20:17:53 -05:00
..
AltDataOutputStreamChild.cpp Bug 1490235 - Use nsDependentCSubstring in AltDataOutputStreamChild::WriteDataInChunks r=mayhemer 2018-09-25 16:56:16 +00:00
AltDataOutputStreamChild.h Bug 1490235 - Use nsDependentCSubstring in AltDataOutputStreamChild::WriteDataInChunks r=mayhemer 2018-09-25 16:56:16 +00:00
AltDataOutputStreamParent.cpp
AltDataOutputStreamParent.h
AlternateServices.cpp Bug 1499149 - Better telemetry for alt-svc headers seen in the wild. r=francois,valentin 2018-10-17 18:14:56 +00:00
AlternateServices.h Bug 1493724 - Don't overwrite still-valid altsvc mappings until a new one is validated. r=valentin 2018-10-15 21:52:04 +00:00
ASpdySession.cpp Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
ASpdySession.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
BackgroundChannelRegistrar.cpp Bug 1488305 - Remove the XPCOM component registration for BackgroundChannelRegistrar r=nwgh 2018-09-26 00:27:32 +00:00
BackgroundChannelRegistrar.h Bug 1488305 - Remove the XPCOM component registration for BackgroundChannelRegistrar r=nwgh 2018-09-26 00:27:32 +00:00
CacheControlParser.cpp
CacheControlParser.h
ConnectionDiagnostics.cpp Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
DelayHttpChannelQueue.cpp Bug 1432429 - Create a DelayHttpChannelQueue class to queue network requests until FuzzyFox indicates they should fire. r=mayhemer,baku 2018-09-18 13:05:54 -05:00
DelayHttpChannelQueue.h Bug 1432429 - Create a DelayHttpChannelQueue class to queue network requests until FuzzyFox indicates they should fire. r=mayhemer,baku 2018-09-18 13:05:54 -05:00
DocumentAnalyticsTrackerFastBlocked.h Bug 1489252 - Part 2: Add a telemetry probe for measuring the rate at which popular analytics providers get blocked by fastblock for top-level documents; r=baku,mayhemer,chutten data-r=liuche 2018-09-14 16:06:07 -04:00
http2_huffman_table.txt
Http2Compression.cpp Bug 1505867 - Add pref for hpack table dumps. r=bagder 2018-11-09 07:23:17 +00:00
Http2Compression.h Bug 1505867 - Add pref for hpack table dumps. r=bagder 2018-11-09 07:23:17 +00:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp Bug 1493204 - Add pushed streams to the priority tree. r=dragana 2018-10-03 09:40:23 +00:00
Http2Push.h Bug 1493204 - Add pushed streams to the priority tree. r=dragana 2018-10-03 09:40:23 +00:00
Http2Session.cpp Bug 1507540 part 3. Use more notxpcom attributes in netwerk/. r=valentin 2018-11-19 20:17:53 -05:00
Http2Session.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
Http2Stream.cpp Bug 1507540 part 3. Use more notxpcom attributes in netwerk/. r=valentin 2018-11-19 20:17:53 -05:00
Http2Stream.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
HttpAuthUtils.cpp
HttpAuthUtils.h
HttpBackgroundChannelChild.cpp Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpBackgroundChannelChild.h Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpBackgroundChannelParent.cpp Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpBackgroundChannelParent.h Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpBaseChannel.cpp Bug 1452535 - Move some logs to level 1 r=mayhemer 2018-11-16 16:35:52 +00:00
HttpBaseChannel.h Bug 1505948: Add cache info to network profiler markers r=mstange,nwgh 2018-11-14 15:54:22 -05:00
HttpChannelChild.cpp Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpChannelChild.h Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpChannelParent.cpp Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
HttpChannelParent.h Bug 1498434 - add new telemetry probe to know the delay caused by e10s back pressure r=valentin 2018-10-23 22:17:22 +00:00
HttpChannelParentListener.cpp Bug 1494376 - Log ~HttpChannelParentListener, r=nwgh 2018-10-04 04:48:00 +03:00
HttpChannelParentListener.h Bug 1494376 - Log ~HttpChannelParentListener, r=nwgh 2018-10-04 04:48:00 +03:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h
InterceptedChannel.cpp Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
InterceptedChannel.h Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
InterceptedHttpChannel.cpp Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke 2018-10-17 13:58:30 +00:00
InterceptedHttpChannel.h Bug 1475073: Pass individual CORS errors as categories to web console error messages. r=baku 2018-07-20 19:57:41 +02:00
make_incoming_tables.py
make_outgoing_tables.py
moz.build Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsAHttpConnection.h Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
nsAHttpTransaction.h
nsCORSListenerProxy.cpp Bug 1503736 - Origin header honors network.http.referer.hideOnionSource r=ckerschb,dragana 2018-11-14 21:39:13 +00:00
nsCORSListenerProxy.h Bug 1475073: Pass individual CORS errors as categories to web console error messages. r=baku 2018-07-20 19:57:41 +02:00
nsHttp.cpp Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
nsHttp.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
nsHttpActivityDistributor.cpp Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
nsHttpActivityDistributor.h Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
nsHttpAtomList.h
nsHttpAuthCache.cpp
nsHttpAuthCache.h Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal 2018-06-14 11:19:07 +03:00
nsHttpAuthManager.cpp Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal 2018-06-14 11:19:07 +03:00
nsHttpAuthManager.h Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal 2018-06-14 11:19:07 +03:00
nsHttpBasicAuth.cpp Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpBasicAuth.h Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpChannel.cpp Bug 1507540 part 3. Use more notxpcom attributes in netwerk/. r=valentin 2018-11-19 20:17:53 -05:00
nsHttpChannel.h Bug 1505948: Add cache info to network profiler markers r=mstange,nwgh 2018-11-14 15:54:22 -05:00
nsHttpChannelAuthProvider.cpp Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpChannelAuthProvider.h Bug 1489916 - Remove the XPCOM component registration for nsHttpChannelAuthProvider; r=valentin 2018-09-10 08:01:37 -04:00
nsHttpChunkedDecoder.cpp Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
nsHttpChunkedDecoder.h Bug 1504512 - Do not delete mTrailers explicitly, r=valentin 2018-11-09 02:53:00 +02:00
nsHttpConnection.cpp Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-16 19:54:35 +02:00
nsHttpConnection.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
nsHttpConnectionInfo.cpp Bug 1473736 - Implement necko part of ESNI r=mak,kmag,mcmanus 2018-09-22 23:54:11 +03:00
nsHttpConnectionInfo.h Bug 1473736 - Implement necko part of ESNI r=mak,kmag,mcmanus 2018-09-22 23:54:11 +03:00
nsHttpConnectionMgr.cpp Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
nsHttpConnectionMgr.h Bug 1355858 - Blacklist hosts from spdy who are very poorly behaved. r=dragana 2018-10-25 20:52:59 +00:00
nsHttpDigestAuth.cpp Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpDigestAuth.h Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpHandler.cpp Bug 1505867 - Add pref for hpack table dumps. r=bagder 2018-11-09 07:23:17 +00:00
nsHttpHandler.h Bug 1505867 - Add pref for hpack table dumps. r=bagder 2018-11-09 07:23:17 +00:00
nsHttpHeaderArray.cpp Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
nsHttpHeaderArray.h
nsHttpNTLMAuth.cpp Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpNTLMAuth.h Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsHttpRequestHead.cpp Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
nsHttpRequestHead.h Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
nsHttpResponseHead.cpp Bug 1452535 - Move some logs to level 1 r=mayhemer 2018-11-16 16:35:52 +00:00
nsHttpResponseHead.h Bug 1460310 - Separate HTTP and SPDY identifiers into separate namespaces. r=dragana 2018-06-01 11:32:05 -07:00
nsHttpTransaction.cpp Bug 1452535 - Move some logs to level 1 r=mayhemer 2018-11-16 16:35:52 +00:00
nsHttpTransaction.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
nsIBackgroundChannelRegistrar.idl
nsICorsPreflightCallback.h
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl Bug 1502774 - Part 1: Remove XPCOM component registrations for HTTP authenticator classes r=valentin 2018-11-01 14:21:47 +00:00
nsIHttpAuthManager.idl
nsIHttpChannel.idl Bug 1482950 - Use the correct 3rdparty check in tracking annotations. r=dimi,Ehsan,mayhemer!,ehsan! 2018-08-20 23:53:45 +00:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl Bug 1446933 - Remove 'using namespace mozilla::net' from BackgroundUtils.h, r=qdot 2018-05-30 21:21:17 +02:00
nsIHttpChannelInternal.idl Bug 1485182 - Part 1: Run http-on-modify-request observers when tracking protection cancels an HTTP channel; r=mayhemer 2018-08-22 14:00:01 -04:00
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
nsIRaceCacheWithNetwork.idl
nsIRedirectProcessChooser.idl Bug 1476996 - Implement cross process redirection in Http on the parent process r=bagder,nika 2018-09-04 20:45:22 +00:00
nsIWellKnownOpportunisticUtils.idl
nsServerTiming.cpp Bug 1460590 part 1 - Fix our parsing of Server-Timing. r=valentin 2018-06-01 11:39:49 -07:00
nsServerTiming.h Bug 1423495 - Part6: Use threadsafe refcounting for nsServerTiming r=baku,nwgh 2018-04-24 13:04:12 +02:00
NullHttpChannel.cpp Bug 1482950 - Use the correct 3rdparty check in tracking annotations. r=dimi,Ehsan,mayhemer!,ehsan! 2018-08-20 23:53:45 +00:00
NullHttpChannel.h Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
NullHttpTransaction.cpp Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
NullHttpTransaction.h
PAltDataOutputStream.ipdl
PHttpBackgroundChannel.ipdl Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE 2018-11-16 02:34:15 +02:00
PHttpChannel.ipdl Backed out 2 changesets (bug 1487100) for XPCShell failures in netwerk/test/unit_ipc/test_alt-data_simple_wrap.js 2018-10-18 05:51:42 +03:00
PHttpChannelParams.h Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke 2018-10-17 13:58:30 +00:00
PSpdyPush.h Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin 2018-04-30 19:46:04 +03:00
PTrackingDummyChannel.ipdl Bug 1495285 - Introduce TrackingDummyChannel to annotate channels before being intercepted by ServiceWorkers, r=francois, r=mayhemer, f=asuth 2018-10-12 11:40:36 +02:00
README
TimingStruct.h Bug 1457323: Add network markers to Content processes, add redirects and improve markers r=mstange 2018-05-08 15:50:39 -04:00
TrackingDummyChannel.cpp Bug 1499995 - part 2 - TrackingDummyChannel must expose nsIHttpChannelInternal, r=ehsan, r=mayhemer 2018-10-25 10:44:12 +02:00
TrackingDummyChannel.h Bug 1499995 - part 2 - TrackingDummyChannel must expose nsIHttpChannelInternal, r=ehsan, r=mayhemer 2018-10-25 10:44:12 +02:00
TrackingDummyChannelChild.cpp Bug 1499995 - part 2 - TrackingDummyChannel must expose nsIHttpChannelInternal, r=ehsan, r=mayhemer 2018-10-25 10:44:12 +02:00
TrackingDummyChannelChild.h Bug 1495285 - Introduce TrackingDummyChannel to annotate channels before being intercepted by ServiceWorkers, r=francois, r=mayhemer, f=asuth 2018-10-12 11:40:36 +02:00
TrackingDummyChannelParent.cpp Bug 1499995 - part 2 - TrackingDummyChannel must expose nsIHttpChannelInternal, r=ehsan, r=mayhemer 2018-10-25 10:44:12 +02:00
TrackingDummyChannelParent.h Bug 1499995 - part 2 - TrackingDummyChannel must expose nsIHttpChannelInternal, r=ehsan, r=mayhemer 2018-10-25 10:44:12 +02:00
TunnelUtils.cpp Bug 1506612 - Check whether the tunnel connection is initiated. r=bagder 2018-11-16 10:42:56 +00:00
TunnelUtils.h Bug 1434137 - Implement websockets over http/2 - RFC 8441 r=michal,dragana 2018-11-06 19:29:57 +00:00
UAOverridesBootstrapper.js Bug 1501621 - Enable ESLint for netwerk/dns/ and netwerk/protocol/ (automatic changes) r=dragana,Standard8 2018-11-02 10:38:01 +00:00
UAOverridesBootstrapper.manifest
UserAgentOverrides.jsm Bug 1501621 - Enable ESLint for netwerk/dns/ and netwerk/protocol/ (manual changes) r=dragana,Standard8 2018-11-02 10:38:14 +00:00
UserAgentUpdates.jsm Bug 1501621 - Enable ESLint for netwerk/dns/ and netwerk/protocol/ (manual changes) r=dragana,Standard8 2018-11-02 10:38:14 +00:00
WellKnownOpportunisticUtils.js Bug 1501621 - Enable ESLint for netwerk/dns/ and netwerk/protocol/ (manual changes) r=dragana,Standard8 2018-11-02 10:38:14 +00:00
WellKnownOpportunisticUtils.manifest

                                                        Darin Fisher
                                                        darin@netscape.com
                                                        8/8/2001

                            HTTP DESIGN NOTES


CLASS BREAKDOWN

  nsHttpHandler
    - implements nsIProtocolHandler
    - manages preferences
    - owns the authentication cache
    - holds references to frequently used services

  nsHttpChannel
    - implements nsIHttpChannel
    - talks to the cache
    - initiates http transactions
    - processes http response codes
    - intercepts progress notifications

  nsHttpConnection
    - implements nsIStreamListener & nsIStreamProvider
    - talks to the socket transport service
    - feeds data to its transaction object
    - routes progress notifications

  nsHttpConnectionInfo
    - identifies a connection

  nsHttpTransaction
    - implements nsIRequest
    - encapsulates a http request and response
    - parses incoming data

  nsHttpChunkedDecoder
    - owned by a transaction
    - removes chunked decoding

  nsHttpRequestHead
    - owns a nsHttpHeaderArray
    - knows how to fill a request buffer

  nsHttpResponseHead
    - owns a nsHttpHeaderArray
    - knows how to parse response lines
    - performs common header manipulations/calculations

  nsHttpHeaderArray
    - stores http "<header>:<value>" pairs

  nsHttpAuthCache
    - stores authentication credentials for http auth domains

  nsHttpBasicAuth
    - implements nsIHttpAuthenticator
    - generates BASIC auth credentials from user:pass


ATOMS

  nsHttp:: (header namespace)

  eg. nsHttp::Content_Length


TRANSACTION MODEL

  InitiateTransaction -> ActivateConnection -> AsyncWrite, AsyncRead

  The channel creates transactions, and passes them to the handler via
  InitiateTransaction along with a nsHttpConnectionInfo object
  identifying the requested connection.  The handler either dispatches
  the transaction immediately or queues it up to be dispatched later,
  depending on whether or not the limit on the number of connections
  to the requested server has been reached.  Once the transaction can
  be run, the handler looks for an idle connection or creates a new
  connection, and then (re)activates the connection, assigning it the
  new transaction.

  Once activated the connection ensures that it has a socket transport,
  and then calls AsyncWrite and AsyncRead on the socket transport.  This
  begins the process of talking to the server.  To minimize buffering,
  socket transport thread-proxying is completely disabled (using the flags
  DONT_PROXY_LISTENER | DONT_PROXY_PROVIDER | DONT_PROXY_OBSERVER with
  both AsyncWrite and AsyncRead).  This means that the nsHttpConnection's
  OnStartRequest, OnDataAvailable, OnDataWritable, and OnStopRequest
  methods will execute on the socket transport thread.

  The transaction defines (non-virtual) OnDataReadable, OnDataWritable, and
  OnStopTransaction methods, which the connection calls in response to
  its OnDataAvailable, OnDataWritable, and OnStopRequest methods, respectively.
  The transaction owns a nsStreamListenerProxy created by the channel, which
  it uses to transfer data from the socket thread over to the client's thread.
  To mimize buffering, the transaction implements nsIInputStream, and passes
  itself to the stream listener proxy's OnDataAvailable.  In this way, we
  have effectively wedged the response parsing between the socket and the
  thread proxy's buffer.  When read, the transaction turns around and reads
  from the socket using the buffer passed to it.  The transaction scans the
  buffer for headers, removes them as they are detected, and copies the headers
  into its nsHttpResponseHead object.  The rest of the data remains in the
  buffer, and is proxied over to the client's thread to be handled first by the
  http channel and eventually by the client.

  There are several other major design factors, including:

    - transaction cancelation
    - progress notification
    - SSL tunneling
    - chunked decoding
    - thread safety
    - premature EOF detection and transaction restarting
    - pipelining (not yet implemented)


CACHING

<EOF>