gecko-dev/netwerk/protocol/http
2020-01-31 14:11:20 +00:00
..
AltDataOutputStreamChild.cpp Bug 1562642 - Add missing MPL2 headers r=mhoye 2019-07-05 17:05:57 +00:00
AltDataOutputStreamChild.h
AltDataOutputStreamParent.cpp
AltDataOutputStreamParent.h
AlternateServices.cpp Bug 1600254 - P5: Make TransactionObserver work r=dragana 2020-01-30 13:07:45 +00:00
AlternateServices.h Bug 1600254 - P5: Make TransactionObserver work r=dragana 2020-01-30 13:07:45 +00:00
ASpdySession.cpp
ASpdySession.h Bug 1581637 - Part 8 - Add Http3Session/Http3Stream. r=mayhemer 2019-11-01 14:55:55 +00:00
BackgroundChannelRegistrar.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
BackgroundChannelRegistrar.h
CacheControlParser.cpp
CacheControlParser.h
ClassifierDummyChannel.cpp Bug 1607518 - Make ClassifierDummyChannel implement nsIClassifiedChannel; r=baku 2020-01-20 02:02:17 +00:00
ClassifierDummyChannel.h Bug 1607518 - Make ClassifierDummyChannel implement nsIClassifiedChannel; r=baku 2020-01-20 02:02:17 +00:00
ClassifierDummyChannelChild.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
ClassifierDummyChannelChild.h
ClassifierDummyChannelParent.cpp Bug 1607518 - Make ClassifierDummyChannel implement nsIClassifiedChannel; r=baku 2020-01-20 02:02:17 +00:00
ClassifierDummyChannelParent.h Bug 1572240 - Part 3: Introduce nsIHttpChannelInternal.contentBlockingAllowListPrincipal; r=michal 2019-08-19 19:38:50 +00:00
components.conf Bug 1513574 - Remove UAOverridesBootstrapper r=michal 2019-09-16 15:21:18 +00:00
ConnectionDiagnostics.cpp
DelayHttpChannelQueue.cpp
DelayHttpChannelQueue.h
http2_huffman_table.txt
Http2Compression.cpp
Http2Compression.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp Bug 1600254 - P6: Make H2 push work r=dragana 2020-01-30 13:52:22 +00:00
Http2Push.h Bug 1600254 - P6: Make H2 push work r=dragana 2020-01-30 13:52:22 +00:00
Http2Session.cpp Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj 2020-01-13 19:18:56 +00:00
Http2Session.h Bug 1554411 - Make sure to deregister each HTTP/2 tunnel with the same key as used for its registration, r=dragana 2019-08-05 20:48:22 +00:00
Http2Stream.cpp Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj 2019-12-20 07:16:43 +00:00
Http2Stream.h Bug 1554411 - Make sure to deregister each HTTP/2 tunnel with the same key as used for its registration, r=dragana 2019-08-05 20:48:22 +00:00
Http3Session.cpp Bug 1600254 - P6: Make H2 push work r=dragana 2020-01-30 13:52:22 +00:00
Http3Session.h Bug 1608967 - Adapt necko to new neqo r=michal 2020-01-20 21:06:07 +00:00
Http3Stream.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-11-26 14:35:02 +00:00
Http3Stream.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-11-26 14:35:02 +00:00
HttpAuthUtils.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
HttpAuthUtils.h
HttpBackgroundChannelChild.cpp Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer 2019-12-19 22:01:28 +00:00
HttpBackgroundChannelChild.h Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer 2019-12-19 22:01:28 +00:00
HttpBackgroundChannelParent.cpp Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer 2019-12-19 22:01:28 +00:00
HttpBackgroundChannelParent.h Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer 2019-12-19 22:01:28 +00:00
HttpBaseChannel.cpp Bug 1600254 - P8: Make nsIInputChannelThrottleQueue work with socket process r=dragana 2020-01-30 13:32:55 +00:00
HttpBaseChannel.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
HttpChannelChild.cpp Bug 1599046 - P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan 2020-01-27 10:39:38 +00:00
HttpChannelChild.h Bug 1599046 - P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan 2020-01-27 10:39:38 +00:00
HttpChannelParent.cpp Bug 1599046 - P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan 2020-01-27 10:39:38 +00:00
HttpChannelParent.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
HttpConnectionMgrChild.cpp Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
HttpConnectionMgrChild.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
HttpConnectionMgrParent.cpp Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
HttpConnectionMgrParent.h Bug 1596409 - P4: Impl PHttpConnectionMgr IPC protocol r=dragana 2019-12-03 13:44:39 +00:00
HttpConnectionMgrShell.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h Bug 1608523: Add MOZ_LOG_TIME() to allow time ranges for logs r=froydnj 2020-01-14 21:36:19 +00:00
HttpTrafficAnalyzer.cpp Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin 2019-12-02 13:21:06 +00:00
HttpTrafficAnalyzer.h Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin 2019-12-02 13:21:06 +00:00
HttpTrafficAnalyzer.inc
HttpTransactionChild.cpp Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
HttpTransactionChild.h Bug 1600254 - P6: Make H2 push work r=dragana 2020-01-30 13:52:22 +00:00
HttpTransactionParent.cpp Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
HttpTransactionParent.h Bug 1600254 - P7: Enable ContentSniffer for socket process r=dragana 2020-01-30 13:56:57 +00:00
HttpTransactionShell.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
InterceptedChannel.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
InterceptedChannel.h Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin 2019-12-02 13:21:06 +00:00
InterceptedHttpChannel.cpp Bug 1580363 - propagate "apply conversion" flag when synthesized response creates a redirect channel r=asuth 2019-09-10 23:55:21 +00:00
InterceptedHttpChannel.h
make_incoming_tables.py
make_outgoing_tables.py
moz.build Bug 1596409 - P4: Impl PHttpConnectionMgr IPC protocol r=dragana 2019-12-03 13:44:39 +00:00
nsAHttpConnection.h Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana 2019-12-03 13:42:15 +00:00
nsAHttpTransaction.h Bug 1579049 - Part2: Expose proxy response error code in nsIProxiedChannel.idl r=mayhemer 2019-11-21 16:02:47 +00:00
nsCORSListenerProxy.cpp Bug 1607615 - Allow CORS preflights with a default of 5 seconds for expiry if Access-Control-Max-Age hasn't been sent; r=mayhemer 2020-01-14 17:13:11 +00:00
nsCORSListenerProxy.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsHttp.cpp Bug 1605659 - fix some errors discovered with -Wdeprecated-copy. r=valentin 2020-01-09 16:42:15 +00:00
nsHttp.h Bug 1600254 - P7: Enable ContentSniffer for socket process r=dragana 2020-01-30 13:56:57 +00:00
nsHttpActivityDistributor.cpp Bug 1600254 - P4: Make HttpActivityObserver work in socket process r=dragana 2020-01-30 13:00:11 +00:00
nsHttpActivityDistributor.h Bug 1600254 - P4: Make HttpActivityObserver work in socket process r=dragana 2020-01-30 13:00:11 +00:00
nsHttpAtomList.h Bug 1543068 - P1 Substitute Cross-Origin header with COEP r=nika 2019-08-08 18:38:03 +00:00
nsHttpAuthCache.cpp Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin 2019-12-02 13:21:06 +00:00
nsHttpAuthCache.h Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan 2020-01-21 09:51:27 +00:00
nsHttpAuthManager.cpp Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin 2019-12-02 13:21:06 +00:00
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 1602313 - Make nsHttpChannel::mCachedContentIsValid an atomic bool, r=kershaw 2020-01-31 14:11:20 +00:00
nsHttpChannel.h Bug 1602313 - Make nsHttpChannel::mCachedContentIsValid an atomic bool, r=kershaw 2020-01-31 14:11:20 +00:00
nsHttpChannelAuthProvider.cpp Bug 1605934 - Use nested namespaces r=sg 2020-01-18 13:48:34 +00:00
nsHttpChannelAuthProvider.h Bug 1607760 - Remove ConfirmAuth prompt and URI userinfo telemetry. r=valentin 2020-01-13 09:41:55 +00:00
nsHttpChunkedDecoder.cpp Bug 1605659 - fix some errors discovered with -Wdeprecated-copy. r=valentin 2020-01-09 16:42:15 +00:00
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Bug 1596409 - P2: Seperate nsHttpConnectionMgr and AltSvcCache r=dragana 2019-12-03 13:43:29 +00:00
nsHttpConnection.h Bug 1581637 - Part 9 - Make Http3 connection and include http3 in nsHttpConnectionMgr. r=mayhemer 2019-11-01 14:55:55 +00:00
nsHttpConnectionInfo.cpp Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
nsHttpConnectionInfo.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
nsHttpConnectionMgr.cpp Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
nsHttpConnectionMgr.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h Bug 1610064 - Avoid including StyleSheet.h from Document.h. r=nordzilla,firefox-style-system-reviewers 2020-01-21 20:31:05 +00:00
nsHttpHandler.cpp Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
nsHttpHandler.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h
nsHttpNTLMAuth.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsHttpNTLMAuth.h
nsHttpRequestHead.cpp Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana 2019-12-03 13:42:15 +00:00
nsHttpRequestHead.h Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana 2019-12-03 13:42:15 +00:00
nsHttpResponseHead.cpp Bug 1600254 - P7: Enable ContentSniffer for socket process r=dragana 2020-01-30 13:56:57 +00:00
nsHttpResponseHead.h Bug 1600254 - P7: Enable ContentSniffer for socket process r=dragana 2020-01-30 13:56:57 +00:00
nsHttpTransaction.cpp Bug 1608114 - Increase the priority of the TRR main thread events r=mayhemer 2020-01-31 08:46:44 +00:00
nsHttpTransaction.h Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
nsIBackgroundChannelRegistrar.idl
nsICorsPreflightCallback.h
nsIHttpActivityObserver.idl Bug 1600254 - P4: Make HttpActivityObserver work in socket process r=dragana 2020-01-30 13:00:11 +00:00
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl Bug 1545423 - P1 Expose requestSize to nsIHttpChannel r=dragana 2019-10-31 03:59:36 +00:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 1590166 - WindowGlobalChild::Create should call GetCrossOriginOpenerPolicy instead of ComputeCrossOriginOpenerPolicy r=bzbarsky 2020-01-18 17:14:07 +00:00
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl Bug 1584031 - Allow non-http channels into on-may-change-process. r=kmag 2019-11-27 02:19:17 +00:00
nsIRaceCacheWithNetwork.idl
nsIWellKnownOpportunisticUtils.idl
nsServerTiming.cpp
nsServerTiming.h
NullHttpChannel.cpp Bug 1552176 - Add nsIRequest.set/getTRRMode r=dragana 2020-01-07 20:20:38 +00:00
NullHttpChannel.h Bug 1556489 - P11. Add nIIdentChannel interface. r=mayhemer 2019-09-03 10:19:34 +10:00
NullHttpTransaction.cpp Bug 1600254 - P4: Make HttpActivityObserver work in socket process r=dragana 2020-01-30 13:00:11 +00:00
NullHttpTransaction.h Bug 1595079 - Add an abstract layer to nsHttpTransaction r=dragana 2019-11-15 11:06:04 +00:00
PAltDataOutputStream.ipdl
ParentChannelListener.cpp Bug 1607749 - Supporting querying an nsIAuthPrompt from ParentChannelListener. r=dragana 2020-01-09 21:05:42 +00:00
ParentChannelListener.h Bug 1574372 - Add parent-process version of nsDocumentOpenInfo, and use it in DocumentLoadListener. r=bzbarsky 2019-12-17 03:54:45 +00:00
PClassifierDummyChannel.ipdl
PHttpBackgroundChannel.ipdl Bug 1601243 - Revert removal of OnStartRequestSent. r=mayhemer 2019-12-19 22:01:28 +00:00
PHttpChannel.ipdl Bug 1599046 - P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan 2020-01-27 10:39:38 +00:00
PHttpChannelParams.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
PHttpConnectionMgr.ipdl Bug 1600254 - P9: Avoild accessing http channel from transaction r=dragana 2020-01-30 13:38:39 +00:00
PHttpTransaction.ipdl Bug 1600254 - P7: Enable ContentSniffer for socket process r=dragana 2020-01-30 13:56:57 +00:00
PSpdyPush.h
QuicSocketControl.cpp Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana 2019-12-03 13:42:15 +00:00
QuicSocketControl.h Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana 2019-12-03 13:42:15 +00:00
README
TimingStruct.h
TunnelUtils.cpp Bug 1601712 - Avoid notifying callback directly from InputStreamShim::AsyncWait() r=dragana 2020-01-08 10:15:48 +00:00
TunnelUtils.h Bug 1562276 - Proper transaction restart on HTTP_1_1_REQUIRED and h2 proxy, r=dragana. 2019-08-24 13:21:37 +00:00
WellKnownOpportunisticUtils.jsm Bug 1561435 - Format netwerk/, a=automatic-formatting 2019-07-05 10:55:23 +02:00

                                                        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>