gecko-dev/netwerk/protocol/http
2013-10-25 14:56:51 -07:00
..
ASpdySession.cpp bug 912550 - remove spdy/2 r=hurley 2013-09-27 13:55:24 -04:00
ASpdySession.h bug 912550 - remove spdy/2 r=hurley 2013-09-27 13:55:24 -04:00
ConnectionDiagnostics.cpp bug 912550 - remove spdy/2 r=hurley 2013-09-27 13:55:24 -04:00
HttpBaseChannel.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpBaseChannel.h bug 897503 - part 2 use smart pointers for nsHttpHandler references r=sworkman 2013-08-13 15:36:58 -04:00
HttpChannelChild.cpp Bug 924967 - Add main thread assertions for Cancel in nsLoadGroup, nsHttpChannel and nsInputStreamPump r=mcmanus 2013-10-17 10:21:32 -07:00
HttpChannelChild.h Bug 885804: Renaming in netwerk r=jduell 2013-07-08 11:48:39 -04:00
HttpChannelParent.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpChannelParent.h Bug 913807 - HTTP cache v2: API+top service+integration+tests, off by default, r=michal+ehsan+mark.finkle+fabrice+mhammond+gavin 2013-09-20 11:11:25 +02:00
HttpChannelParentListener.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpChannelParentListener.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpDataUsage.js Back out c93c3f52689c (bug 904170) for b2g desktop bustage 2013-09-22 20:21:26 -07: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
Makefile.in Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00
moz.build Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
nsAHttpConnection.h bug 790388 part 3 - spdy/3 server push r=hurley 2013-05-29 00:07:03 -04:00
nsAHttpTransaction.h bug 790388 part 3 - spdy/3 server push r=hurley 2013-05-29 00:07:03 -04:00
nsHttp.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttp.h bug 912550 - remove spdy/2 r=hurley 2013-09-27 13:55:24 -04:00
nsHttpActivityDistributor.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpActivityDistributor.h Bug 884061 - Part 3q: Use NS_DECL_THREADSAFE_ISUPPORTS in netwerk/, r=macmanus 2013-07-18 21:24:13 -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 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpAuthCache.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpAuthManager.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpAuthManager.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpBasicAuth.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpBasicAuth.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpChannel.cpp Bug 924967 - Add main thread assertions for Cancel in nsLoadGroup, nsHttpChannel and nsInputStreamPump r=mcmanus 2013-10-17 10:21:32 -07:00
nsHttpChannel.h Bug 914824 - HTTP cache v1/v2 general timing and hit rate compare telemetry, r=michal 2013-09-26 21:37:04 +02:00
nsHttpChannelAuthProvider.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpChannelAuthProvider.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpChunkedDecoder.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpChunkedDecoder.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpConnection.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpConnection.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpConnectionInfo.cpp Backout 6a84bba784c9 and df399d443e57 (Bug 853423) for xpcshell failures 2013-09-28 16:20:59 -07:00
nsHttpConnectionInfo.h Backout 6a84bba784c9 and df399d443e57 (Bug 853423) for xpcshell failures 2013-09-28 16:20:59 -07:00
nsHttpConnectionMgr.cpp Bug 881804 (part 1) - Add support for predictive network actions. r=mcmanus f=honzab sr=biesi 2013-10-25 14:56:51 -07:00
nsHttpConnectionMgr.h Bug 881804 (part 1) - Add support for predictive network actions. r=mcmanus f=honzab sr=biesi 2013-10-25 14:56:51 -07:00
nsHttpDigestAuth.cpp bug 918265 - deal with long www-authenticate fields r=sworkman 2013-09-26 14:54:59 -04:00
nsHttpDigestAuth.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpHandler.cpp Bug 925599 - Suppress warning in netwerk/. r=mcmanus 2013-10-18 07:25:23 +09:00
nsHttpHandler.h bug 912550 - remove spdy/2 r=hurley 2013-09-27 13:55:24 -04:00
nsHttpHeaderArray.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpHeaderArray.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpNTLMAuth.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpPipeline.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpRequestHead.cpp Bug 558623 - Split out HTTP LOG macro definition from nsHttp.h r=jdm 2013-06-22 09:01:06 -07:00
nsHttpRequestHead.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpResponseHead.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpResponseHead.h Bug 759257: Remove InfallableCopyCString [sic], r=hurley 2013-06-24 16:46:08 -07:00
nsHttpTransaction.cpp bug 922691 - nshttptransaction pointer log formatters for 64bit r=jduell 2013-10-01 11:48:47 -04:00
nsHttpTransaction.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04: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 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04: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 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
NullHttpTransaction.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
PHttpChannel.ipdl Bug 558623 - e10s HTTP: combine PHttpChannel constructor with SendAsyncOpen/SendRedirect1Begin r=jdm 2013-06-22 09:09:19 -07:00
PHttpChannelParams.h Bug 759257: Remove InfallableCopyCString [sic], r=hurley 2013-06-24 16:46:08 -07:00
PSpdyPush.h bug 912549 - spdy/3.1 r=hurley 2013-07-26 17:22:46 -04: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 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
SpdyPush3.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
SpdyPush31.cpp bug 912549 - spdy/3.1 r=hurley 2013-07-26 17:22:46 -04:00
SpdyPush31.h Fix a broken #include guard, no bug 2013-09-28 17:17:44 -04:00
SpdySession3.cpp bug 922109 - spdy/3 settings frame does not restart window starved streams r=hurley 2013-10-01 17:48:06 -04:00
SpdySession3.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
SpdySession31.cpp Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan 2013-10-23 16:36:09 -04:00
SpdySession31.h bug 912549 - spdy/3.1 r=hurley 2013-07-26 17:22:46 -04:00
SpdyStream3.cpp bug 922109 - spdy/3 settings frame does not restart window starved streams r=hurley 2013-10-01 17:48:06 -04: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
UserAgentOverrides.jsm Bug 917685 - Let complex overrides take precedence over pref overrides; r=dao 2013-10-16 10:51:23 -04:00
UserAgentUpdates.jsm Bug 897221 - Add test for UserAgentUpdates.jsm; r=fabrice 2013-10-02 20:33:27 -04: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>