gecko-dev/netwerk/protocol/http
Patrick McManus 423f27d55c bug 782570 - nsHttpPipeline::CancelTransaction force connection close if no sub transactions are left r=jduell 2012-08-21 08:37:31 -04:00
..
ASpdySession.cpp bug 764260 convert telemetry::SPDY_VERSION and DNS_LOOKUP_METHOD to be enumerations r=bsmith 2012-06-19 20:38:44 -04:00
ASpdySession.h bug 770264 - http connection diagnostics r=honzab 2012-07-09 18:07:57 -04:00
ConnectionDiagnostics.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
HttpBaseChannel.cpp Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
HttpBaseChannel.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
HttpChannelChild.cpp Bug 776174 - e10s: cleanup IPC nsILoader code. r=smaug, r=jdm 2012-08-06 21:47:48 -07:00
HttpChannelChild.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
HttpChannelParent.cpp Bug 776174 - e10s: cleanup IPC nsILoader code. r=smaug, r=jdm 2012-08-06 21:47:48 -07:00
HttpChannelParent.h Bug 776174 - e10s: cleanup IPC nsILoader code. r=smaug, r=jdm 2012-08-06 21:47:48 -07:00
HttpChannelParentListener.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
HttpChannelParentListener.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Makefile.in Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
NullHttpTransaction.cpp Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
NullHttpTransaction.h Backout d45ca69b67a3 (bug 767516), 4ff98d3e4d8d (bug 767512), 70cc47076115 (bug 767505), 4eca26d02c84 (bug 766929) for mochitest-plain-5 failures 2012-06-25 21:38:10 +01:00
PHttpChannel.ipdl Bug 776174 - e10s: cleanup IPC nsILoader code. r=smaug, r=jdm 2012-08-06 21:47:48 -07:00
PHttpChannelParams.h Bug 781256 - 'Share FileDescriptors across processes in preparation for OS-level sandbox'. r=khuey+cjones. 2012-08-16 00:02:32 -04:00
README Bug 542222 - Reduce recursion in netwerk makefiles. 2010-06-05 21:18:12 -04:00
SpdySession2.cpp Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
SpdySession2.h bug 770264 - http connection diagnostics r=honzab 2012-07-09 18:07:57 -04:00
SpdySession3.cpp Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
SpdySession3.h bug 770264 - http connection diagnostics r=honzab 2012-07-09 18:07:57 -04:00
SpdyStream2.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
SpdyStream2.h Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (netwerk parts); r=jduell 2012-06-05 23:18:25 -04:00
SpdyStream3.cpp bug 780104 - fail gracefully on invalid spdy dictionary r=honzab 2012-08-07 21:49:53 -04:00
SpdyStream3.h Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (netwerk parts); r=jduell 2012-06-05 23:18:25 -04:00
TimingStruct.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
ipdl.mk Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsAHttpConnection.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsAHttpTransaction.h Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
nsHttp.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttp.h bug 765048 - backout 3 digit accept-language q values r=biesi 2012-08-06 21:42:38 -04:00
nsHttpActivityDistributor.cpp Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpActivityDistributor.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpAtomList.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpAuthCache.cpp Bug 780387 - Part e: Stop using PRSize; r=bsmedberg 2012-08-09 09:10:11 +02:00
nsHttpAuthCache.h Bug 780387 - Part e: Stop using PRSize; r=bsmedberg 2012-08-09 09:10:11 +02:00
nsHttpAuthManager.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpAuthManager.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpBasicAuth.cpp Bug 778680 part 2 - Fix incorrect nsresult usage in netwerk/; r=jduell 2012-08-01 11:17:09 +03:00
nsHttpBasicAuth.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpChannel.cpp Back out cbb72643bbae (bug 723362) for leaking 2012-08-20 20:28:19 -07:00
nsHttpChannel.h bug 767158 - remove blocking dns call in sspi r=honzab 2012-07-26 11:09:05 -04:00
nsHttpChannelAuthProvider.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpChannelAuthProvider.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpChunkedDecoder.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpChunkedDecoder.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpConnection.cpp Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
nsHttpConnection.h bug 770264 - http connection diagnostics r=honzab 2012-07-09 18:07:57 -04:00
nsHttpConnectionInfo.cpp Bug 713026 - websockets bootstrap via proxy should always CONNECT. r=mcmanus 2012-06-18 22:50:20 -07:00
nsHttpConnectionInfo.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpConnectionMgr.cpp Bug 782252 - Change named constants to correct types; r=ehsan 2012-08-07 18:11:35 +03:00
nsHttpConnectionMgr.h bug 780522 - stack overflow port out of range part 2/2 r=honzab 2012-08-09 20:38:36 -04:00
nsHttpDigestAuth.cpp Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
nsHttpDigestAuth.h Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (netwerk parts); r=jduell 2012-06-05 23:18:25 -04:00
nsHttpHandler.cpp Bug 726062 - B2G UA is wrong, better fix [r=gal] 2012-08-20 12:25:09 -07:00
nsHttpHandler.h bug 762162 - network.http.timeout-connection r=honzab 2012-07-23 19:10:00 -04:00
nsHttpHeaderArray.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpHeaderArray.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpNTLMAuth.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpNTLMAuth.h Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpPipeline.cpp bug 782570 - nsHttpPipeline::CancelTransaction force connection close if no sub transactions are left r=jduell 2012-08-21 08:37:31 -04:00
nsHttpPipeline.h Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpRequestHead.cpp Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsHttpRequestHead.h Bug 759019 - Make nsHttpResponseHead and nsHttpRequestHead copy-constructable, assignable, and const-correct, r=biesi 2012-04-05 01:21:02 -07:00
nsHttpResponseHead.cpp Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
nsHttpResponseHead.h Bug 759019 - Make nsHttpResponseHead and nsHttpRequestHead copy-constructable, assignable, and const-correct, r=biesi 2012-04-05 01:21:02 -07:00
nsHttpTransaction.cpp Bug 475444 - HTTP standard violation, Content-length header appears to be ignored under some circumstances, r=bz sr=biesi 2012-08-16 12:37:52 +02:00
nsHttpTransaction.h Bug 475444 - HTTP standard violation, Content-length header appears to be ignored under some circumstances, r=bz sr=biesi 2012-08-16 12:37:52 +02:00
nsIHttpActivityObserver.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpAuthManager.idl Backout d45ca69b67a3 (bug 767516), 4ff98d3e4d8d (bug 767512), 70cc47076115 (bug 767505), 4eca26d02c84 (bug 766929) for mochitest-plain-5 failures 2012-06-25 21:38:10 +01:00
nsIHttpAuthenticableChannel.idl bug 767158 - remove blocking dns call in sspi r=honzab 2012-07-26 11:09:05 -04:00
nsIHttpAuthenticator.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpChannel.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpChannelAuthProvider.idl bug 767158 - remove blocking dns call in sspi r=honzab 2012-07-26 11:09:05 -04:00
nsIHttpChannelChild.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpChannelInternal.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpEventSink.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpHeaderVisitor.idl Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
nsIHttpProtocolHandler.idl Bug 776376 - Hardcode navigator.productSub to 20100101 for backward compatibility. r=bz sr=jst 2012-07-27 14:09:59 +02: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>