gecko-dev/netwerk/protocol/http
2014-01-24 15:07:37 -08:00
..
ASpdySession.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
ASpdySession.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
ConnectionDiagnostics.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Compression.cpp Bug 958992 - http/2 draft09 support. r=mcmanus 2014-01-13 17:16:26 -08:00
Http2Compression.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2HuffmanIncoming.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2HuffmanOutgoing.h Bug 959799 - Fix autogen include guard error. r=mcmanus 2014-01-15 08:22:30 -05:00
Http2Push.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Push.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Session.cpp bug 959172 - double SpdySession::CleanupStream r=hurley 2014-01-13 10:10:10 -05:00
Http2Session.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Stream.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Stream.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
HttpBaseChannel.cpp Bug 947391 - Add a timeout for initial HTTP responses r=mcmanus 2013-12-18 15:03:48 -08:00
HttpBaseChannel.h Bug 947391 - Add a timeout for initial HTTP responses r=mcmanus 2013-12-18 15:03:48 -08:00
HttpChannelChild.cpp Bug 949667 - crash in mozilla::net::HttpChannelParent::OnStartRequest, fail redirect to unsupported protocol on child process, r=jduell 2014-01-14 15:59:00 +01:00
HttpChannelChild.h Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 2. r=bent 2014-01-17 13:49:39 -06:00
HttpChannelParent.cpp Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc 2014-01-04 10:02:17 -05:00
HttpChannelParent.h Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 2. r=bent 2014-01-17 13:49:39 -06:00
HttpChannelParentListener.cpp Bug 949667 - crash in mozilla::net::HttpChannelParent::OnStartRequest, fail redirect to unsupported protocol on child process, r=jduell 2014-01-14 15:59:00 +01:00
HttpChannelParentListener.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpDataUsage.js bug 931856 http data usage telemetry updates r=jduell 2013-10-28 21:00:27 -04:00
HttpDataUsage.manifest Back out c93c3f52689c (bug 904170) for b2g desktop bustage 2013-09-22 20:21:26 -07:00
HttpInfo.cpp Bug 558623 - Split out HTTP LOG macro definition from nsHttp.h r=jdm 2013-06-22 09:01:06 -07:00
HttpInfo.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpLog.h Bug 558623 - Split out HTTP LOG macro definition from nsHttp.h r=jdm 2013-06-22 09:01:06 -07:00
huff_incoming.txt bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
huff_outgoing.txt bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
make_incoming_tables.py bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
make_outgoing_tables.py Bug 959799 - Fix autogen include guard error. r=mcmanus 2014-01-15 08:22:30 -05:00
moz.build Bug 946065. Part 5: Move content/events to dom/ and flatten away 'src' directory. r=Ms2ger 2014-01-10 16:03:25 +13:00
nsAHttpConnection.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsAHttpTransaction.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttp.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttp.h Bug 958992 - http/2 draft09 support. r=mcmanus 2014-01-13 17:16:26 -08:00
nsHttpActivityDistributor.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpActivityDistributor.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpAtomList.h Bug 878594 - remove alternate-protocol support for spdy upgrades r=mcmanus 2013-06-06 09:10:33 -07:00
nsHttpAuthCache.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpAuthCache.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpAuthManager.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpAuthManager.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpBasicAuth.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpBasicAuth.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpChannel.cpp Bug 861117 - report errors when URIs passed into nsISiteSecurityService::IsSecureURI are malformed. r=briansmith,keeler 2014-01-24 14:37:51 -08:00
nsHttpChannel.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpChannelAuthProvider.cpp Bug 676358 - HTTP auth realm parameter parsed as quoted-string doesn't get unescaped r=jduell 2014-01-24 15:07:37 -08:00
nsHttpChannelAuthProvider.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpChunkedDecoder.cpp Bug 959100 - Make ParseChunkRemaining detect chunk size overflow. r=jduell 2014-01-17 17:07:29 +01:00
nsHttpChunkedDecoder.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpConnection.cpp Bug 947391 - Cancel HTTP response timeout in OnSocketReadable r=mcmanus 2014-01-08 14:12:33 -08:00
nsHttpConnection.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpConnectionInfo.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpConnectionInfo.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpConnectionMgr.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
nsHttpConnectionMgr.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpDigestAuth.cpp Bug 926042 - Convert path length to unsigned ints to avoid overflowing and crashing. r=jduell 2014-01-23 09:38:29 -05:00
nsHttpDigestAuth.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpHandler.cpp Bug 952084 - Porting nsIDOMMozConnection to WebIDL, r=ehsan, r=bz 2014-01-16 11:53:48 +01:00
nsHttpHandler.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
nsHttpHeaderArray.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpHeaderArray.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpNTLMAuth.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpNTLMAuth.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpPipeline.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpPipeline.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpRequestHead.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpRequestHead.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpResponseHead.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpResponseHead.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpTransaction.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpTransaction.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsIHttpActivityObserver.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpAuthenticableChannel.idl Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04:00
nsIHttpAuthenticator.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpAuthManager.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpChannel.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpChannelAuthProvider.idl bug 804605 - backout 766973 767158 785050 r=backout a=akeybl 2013-01-22 11:59:01 -05:00
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 947391 - Add a timeout for initial HTTP responses r=mcmanus 2013-12-18 15:03:48 -08:00
nsIHttpDataUsage.idl Back out c93c3f52689c (bug 904170) for b2g desktop bustage 2013-09-22 20:21:26 -07:00
nsIHttpEventSink.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
NullHttpTransaction.cpp Bug 938803 - Cancel DNS refresh requested in classes implementing nsAHttpTransaction r=mcmanus 2013-11-27 10:19:14 -08:00
NullHttpTransaction.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
PHttpChannel.ipdl Bug 918651 - part 9 - remove useless includes from IPDL files; r=ehsan 2013-10-18 14:47:04 -04:00
PHttpChannelParams.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
PSpdyPush.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
README bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
SpdyPush3.cpp Bug 938803 - Cancel DNS refresh requested in classes implementing nsAHttpTransaction r=mcmanus 2013-11-27 10:19:14 -08:00
SpdyPush3.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
SpdyPush31.cpp Bug 938803 - Cancel DNS refresh requested in classes implementing nsAHttpTransaction r=mcmanus 2013-11-27 10:19:14 -08:00
SpdyPush31.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
SpdySession3.cpp bug 959172 - double SpdySession::CleanupStream r=hurley 2014-01-13 10:10:10 -05:00
SpdySession3.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
SpdySession31.cpp bug 959172 - double SpdySession::CleanupStream r=hurley 2014-01-13 10:10:10 -05:00
SpdySession31.h bug 912549 - spdy/3.1 r=hurley 2013-07-26 17:22:46 -04:00
SpdyStream3.cpp Bug 945533 - Convert various spdy code to use mozilla/Endian.h rather than NSPR endianness conversion functions. r=mcmanus 2013-05-03 15:51:35 -07:00
SpdyStream3.h bug 922109 - spdy/3 settings frame does not restart window starved streams r=hurley 2013-10-01 17:48:06 -04:00
SpdyStream31.cpp bug 922109 - spdy/3 settings frame does not restart window starved streams r=hurley 2013-10-01 17:48:06 -04:00
SpdyStream31.h bug 922109 - spdy/3 settings frame does not restart window starved streams r=hurley 2013-10-01 17:48:06 -04:00
TimingStruct.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
UserAgentOverrides.jsm Bug 927633 - Move UA overrides to the child process. r=jchen 2013-10-31 10:09:06 -04:00
UserAgentUpdates.jsm Bug 942470 - Don't apply user agent update if updates have been disabled. r=fabrice 2013-12-06 10:22:18 -05: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>