gecko-dev/netwerk/protocol/http
Michal Novotny 8030ac3f2d Bug 1382688 - Do not allow to enable old disk cache backend, r=honzab 2017-08-24 10:25:38 +02:00
..
ASpdySession.cpp Bug 1368080 - Only remove pushed streams from cache when canceling the stream if the ids match. r=mcmanus 2017-06-28 10:29:34 -07:00
ASpdySession.h Bug 1337791 - Part 2: http/2 origin frame extension. r=nwgh 2017-04-03 17:23:55 -04:00
AltDataOutputStreamChild.cpp Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer 2017-05-11 21:35:37 +02:00
AltDataOutputStreamChild.h Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer 2017-05-11 21:35:37 +02:00
AltDataOutputStreamParent.cpp Bug 1369044 - Change assertion to handle call failure r=michal 2017-06-19 16:55:12 +02:00
AltDataOutputStreamParent.h Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer 2017-05-11 21:35:37 +02:00
AlternateServices.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
AlternateServices.h Bug 1334690 - Isolate AlternateService mappings by Origin Attributes. r=mcmanus 2017-02-14 16:49:59 +08:00
BackgroundChannelRegistrar.cpp Bug 1015466 - Part 3, PHttpBackgroundChannel lifecycle management. r=mayhemer 2017-04-24 11:09:35 +08:00
BackgroundChannelRegistrar.h Bug 1015466 - Part 3, PHttpBackgroundChannel lifecycle management. r=mayhemer 2017-04-24 11:09:35 +08:00
CacheControlParser.cpp
CacheControlParser.h Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
ConnectionDiagnostics.cpp Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj 2017-07-26 16:03:57 -04:00
HSTSPrimerListener.cpp Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
HSTSPrimerListener.h Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
Http2Compression.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
Http2Compression.h Bug 1330907 - Rename Telemetry::ID to Telemetry::HistogramID. r=dexter 2017-02-16 00:45:15 +05:30
Http2HuffmanIncoming.h Bug 1337230: Tweak the const-ness on the HTTP2 Huffman tables. r=hurley 2017-02-08 16:34:58 +13:00
Http2HuffmanOutgoing.h Bug 1337230: Tweak the const-ness on the HTTP2 Huffman tables. r=hurley 2017-02-08 16:34:58 +13:00
Http2Push.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
Http2Push.h Backed out changeset fef09999e003 (bug 1362388) 2017-05-11 18:00:09 +02:00
Http2Session.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
Http2Session.h Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus 2017-06-28 10:34:55 -07:00
Http2Stream.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
Http2Stream.h Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus 2017-06-28 10:34:55 -07:00
HttpAuthUtils.cpp Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
HttpAuthUtils.h Bug 1340486 - Remove duplication of code at nsHttpNegotiate/NTLMAuth::TestPref and MatchesBaseURI r=mayhemer 2017-02-27 17:57:59 +01:00
HttpBackgroundChannelChild.cpp Bug 1369571 - break reference cycle between HttpChannelChild and HttpBackgroundChannelChild while PHttpChannel is destroyed. r=mayhemer 2017-07-18 19:03:14 +08:00
HttpBackgroundChannelChild.h Bug 1338493 - Part 2, move HttpBackgroundChannelChild to socket transport thread. r=mayhemer 2017-06-28 22:04:17 +08:00
HttpBackgroundChannelParent.cpp Bug 1382103 - ensure thread-safe access to HttpBackgroundChannelParent::mBackgroundThread. r=mayhemer 2017-07-17 16:36:30 +08:00
HttpBackgroundChannelParent.h Bug 1382103 - ensure thread-safe access to HttpBackgroundChannelParent::mBackgroundThread. r=mayhemer 2017-07-17 16:36:30 +08:00
HttpBaseChannel.cpp Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
HttpBaseChannel.h Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
HttpChannelChild.cpp Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
HttpChannelChild.h Bug 1387285 - release more member variable in HttpChannelChild on main thread. r=mayhemer 2017-08-04 18:40:00 +08:00
HttpChannelParent.cpp Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
HttpChannelParent.h Bug 1379345 - Transmit permissions for view-source URIs, r=ehsan 2017-08-18 12:38:04 -04:00
HttpChannelParentListener.cpp Bug 1389738 - Remove @deprecated nsIHttpEventSink. r=mcmanus 2017-08-12 18:26:23 +09:00
HttpChannelParentListener.h Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h
InterceptedChannel.cpp Bug 1359610 - Add telemetry for fetch interception. r=chutten data-r=bsmedberg 2017-05-17 15:42:53 +01:00
InterceptedChannel.h Bug 1328398 - Add telemetry to measure service worker launch time. r=bkelly,francois datareview=francois 2017-08-17 18:32:36 +08:00
NullHttpChannel.cpp Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza 2017-07-10 15:01:35 -04:00
NullHttpChannel.h Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
NullHttpTransaction.cpp Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza 2017-07-10 15:01:35 -04:00
NullHttpTransaction.h Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza 2017-07-10 15:01:35 -04:00
PAltDataOutputStream.ipdl Bug 1363653 - Make AltDataOutputStreamParent not send any messages after object destruction r=mayhemer 2017-05-11 21:35:37 +02:00
PHttpBackgroundChannel.ipdl Bug 1015466 - Part 5, move tracking protection and safe browsing state update IPC to PBackground. r=mayhemer 2017-05-26 11:04:03 +08:00
PHttpChannel.ipdl Bug 1371333 - Remove unused CacheTokenLastFetched from CacheInfoChannel. r=valentin 2017-07-28 13:06:48 +00:00
PHttpChannelParams.h Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
PSpdyPush.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
README
TimingStruct.h Bug 772589 - Implement the secureConnectionStart property for the PerformanceTiming interface r=bkelly,dragana,francois,Honza 2017-07-10 15:01:35 -04:00
TunnelUtils.cpp Bug 1390881 - Improve the TFO telemetry. r=mcmanus 2017-08-20 09:45:26 +02:00
TunnelUtils.h Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
UAOverridesBootstrapper.js Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until first nsHttpChannel is created. r=mcmanus 2017-05-16 12:11:12 +08:00
UAOverridesBootstrapper.manifest Bug 1363421 - Part 2, delay the initialization of UserAgentOverrides.jsm until first nsHttpChannel is created. r=mcmanus 2017-05-16 12:11:12 +08:00
UserAgentOverrides.jsm Bug 1383909 - Add observer notification when UserAgentOverrides.jsm finishes initializing. r=mcmanus 2017-07-24 23:25:51 +02:00
UserAgentUpdates.jsm Bug 1368456 - Remove imports of Promise.jsm from Firefox, r=mconley. 2017-06-23 11:25:18 +02:00
WellKnownOpportunisticUtils.js
WellKnownOpportunisticUtils.manifest
http2_huffman_table.txt
make_incoming_tables.py Bug 1337230: Tweak the const-ness on the HTTP2 Huffman tables. r=hurley 2017-02-08 16:34:58 +13:00
make_outgoing_tables.py Bug 1337230: Tweak the const-ness on the HTTP2 Huffman tables. r=hurley 2017-02-08 16:34:58 +13:00
moz.build Bug 1389738 - Remove @deprecated nsIHttpEventSink. r=mcmanus 2017-08-12 18:26:23 +09:00
nsAHttpConnection.h Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsAHttpTransaction.h Bug 1365307 - Throttling of HTTP transactions. r=mcmanus 2017-06-01 12:16:00 -04:00
nsCORSListenerProxy.cpp Bug 1381282 - Change nsScriptErrorBase::InitWithWindowID so that it does not call GetSensitiveInfoHiddenSpec as much as now. r=bz r=valentin 2017-08-07 15:56:30 +02:00
nsCORSListenerProxy.h Bug 1379631 - Make nsCORSListenerProxy really retargetable. r=mayhemer 2017-08-01 15:05:22 -04:00
nsHttp.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
nsHttp.h Bug 1367551 - Cancel pushes when we already have the item in cache. r=mayhemer,mcmanus 2017-06-28 10:34:55 -07:00
nsHttpActivityDistributor.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
nsHttpActivityDistributor.h
nsHttpAtomList.h Bug 1352274 - Add response header indicator for TCP FastOpen suceeded. r=mcmanus 2017-05-04 12:14:54 +02:00
nsHttpAuthCache.cpp Bug 1310127 - Part 3: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2017-01-12 17:48:45 +08:00
nsHttpAuthCache.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsHttpAuthManager.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsHttpAuthManager.h Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 1382688 - Do not allow to enable old disk cache backend, r=honzab 2017-08-24 10:25:38 +02:00
nsHttpChannel.h Bug 1368527 add new on-before-connect notification to httpChannel, r=dragana,kmag 2017-08-15 13:11:50 -07:00
nsHttpChannelAuthProvider.cpp Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm. 2017-08-16 13:58:35 +10:00
nsHttpChannelAuthProvider.h Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk. 2017-07-12 15:13:37 +10:00
nsHttpChunkedDecoder.cpp Bug 1015466 - Part 0, fix warning/error covered by unified build. r=mayhemer 2017-01-16 18:20:42 +08:00
nsHttpChunkedDecoder.h Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsHttpConnection.cpp Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
nsHttpConnection.h Bug 1390881 - Improve the TFO telemetry. r=mcmanus 2017-08-20 09:45:26 +02:00
nsHttpConnectionInfo.cpp Bug 1388925 - Add an opaque flags to have a fine-grained control over TLS configurations. r=mcmanus, r=keeler 2017-08-16 12:41:16 -07:00
nsHttpConnectionInfo.h Bug 1388925 - Add an opaque flags to have a fine-grained control over TLS configurations. r=mcmanus, r=keeler 2017-08-16 12:41:16 -07:00
nsHttpConnectionMgr.cpp Bug 1392264 - Return undispatched HTTP transaction to the queue in the same order as they were before. r=kershaw 2017-08-21 07:02:00 -04:00
nsHttpConnectionMgr.h Bug 1390881 - Improve the TFO telemetry. r=mcmanus 2017-08-20 09:45:26 +02:00
nsHttpDigestAuth.cpp Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
nsHttpDigestAuth.h Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj. 2017-06-20 19:19:05 +10:00
nsHttpHandler.cpp Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
nsHttpHandler.h Bug 1390428 (part 3) - Remove nsXPIDLCString use in nsHttpHandler. r=erahm. 2017-08-16 13:58:55 +10:00
nsHttpHeaderArray.cpp Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
nsHttpHeaderArray.h Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
nsHttpNTLMAuth.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsHttpNTLMAuth.h
nsHttpRequestHead.cpp Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsHttpRequestHead.h Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsHttpResponseHead.cpp Bug 1347963 - part 3 - make nsHttpResponseHead use RecursiveMutex; r=mcmanus 2017-04-18 12:00:58 -04:00
nsHttpResponseHead.h Bug 1347963 - part 3 - make nsHttpResponseHead use RecursiveMutex; r=mcmanus 2017-04-18 12:00:58 -04:00
nsHttpTransaction.cpp Bug 1388448 - Logs for better network requests and context tracking. r=mcmanus 2017-08-17 12:16:00 -04:00
nsHttpTransaction.h Bug 1387090 - Properly handle DontThrottle flag in all places in nsHttpTransaction. r=mcmanus 2017-08-03 10:47:00 -04:00
nsIBackgroundChannelRegistrar.idl Bug 1015466 - Part 3, PHttpBackgroundChannel lifecycle management. r=mayhemer 2017-04-24 11:09:35 +08:00
nsICorsPreflightCallback.h
nsIHstsPrimingCallback.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpActivityObserver.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpAuthManager.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpAuthenticableChannel.idl Bug 1360574 - Backout original fix to bug 1346392 r=mcmanus 2017-05-11 10:20:14 -07:00
nsIHttpAuthenticator.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpChannel.idl Bug 1331730 - Log CORS messages from the content process r=bz,mayhemer 2017-02-15 12:40:41 +09:00
nsIHttpChannelAuthProvider.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpChannelChild.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpChannelInternal.idl Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsIHttpHeaderVisitor.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00
nsIHttpProtocolHandler.idl Bug 1368527 add new on-before-connect notification to httpChannel, r=dragana,kmag 2017-08-15 13:11:50 -07:00
nsIRaceCacheWithNetwork.idl Bug 1325081 - Add interface to delay the cache fetch in order to test network-cache racing of HTTP requests r=michal 2017-02-15 20:44:09 +01:00
nsIWellKnownOpportunisticUtils.idl Bug 1310127 - Part 1: Use MOZ_MUST_USE in netwerk/protocol/http r=mcmanus 2016-12-27 15:22:07 +08:00

README

                                                        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>