gecko/netwerk/protocol/http
2013-12-19 11:42:19 -05: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 Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
HttpBaseChannel.h Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
HttpChannelChild.cpp Bug 932046 - crash in mozilla::net::HttpChannelChild::OnRedirectVerifyCallback(unsigned int), r=jduell 2013-12-05 13:09:11 +01:00
HttpChannelChild.h
HttpChannelParent.cpp Bug 918651 - part 7a - fix source files bootlegging things from IPDL headers; rs=ehsan 2013-10-18 16:57:55 -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 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
HttpInfo.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
HttpLog.h
moz.build Bug 937224 - Part g: Move LOCAL_INCLUDES to moz.build in netwerk/; r=mshal 2013-11-28 15:25:39 +01:00
nsAHttpConnection.h
nsAHttpTransaction.h Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
nsHttp.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttp.h Bug 942729, Part 2: Remove unused expected symmetric cipher mechanism, r=briansmith 2013-11-25 18:12:40 -05:00
nsHttpActivityDistributor.cpp Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpActivityDistributor.h
nsHttpAtomList.h
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 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
nsHttpChannel.h Bug 938803 - Cancel DNS refresh requested in nsHttpChannel::mCaps r=mcmanus 2013-11-27 10:19:14 -08: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 Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
nsHttpConnection.h Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
nsHttpConnectionInfo.cpp Bug 853423 - Block speculative connections for local IP addresses r=mcmanus 2013-11-10 22:59:40 -08:00
nsHttpConnectionInfo.h Bug 853423 - Block speculative connections for local IP addresses r=mcmanus 2013-11-10 22:59:40 -08:00
nsHttpConnectionMgr.cpp Bug 853423 - Block speculative connections for local IP addresses r=mcmanus 2013-11-10 22:59:40 -08: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 676907 - Refactor (replace) calls to Gestalt because it is deprecated in OS X 10.8 and will not work in after 10.9. r=BenWa 2013-12-19 11:42:19 -05:00
nsHttpHandler.h Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05: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 938803 - Cancel DNS refresh requested in classes implementing nsAHttpTransaction r=mcmanus 2013-11-27 10:19:14 -08:00
nsHttpPipeline.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpRequestHead.cpp
nsHttpRequestHead.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
nsHttpResponseHead.cpp bug 950910 - http default reason phrases r=hurley 2013-12-17 10:21:39 -05:00
nsHttpResponseHead.h bug 950910 - http default reason phrases r=hurley 2013-12-17 10:21:39 -05:00
nsHttpTransaction.cpp Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
nsHttpTransaction.h Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04:00
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Backed out changesets 58db1fb509be and 7301ccf7e0be (bug 947391) for Android xpcshell orange. 2013-12-18 19:41:29 -05:00
nsIHttpDataUsage.idl Back out c93c3f52689c (bug 904170) for b2g desktop bustage 2013-09-22 20:21:26 -07:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
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 938803 - Cancel DNS refresh requested in classes implementing nsAHttpTransaction r=mcmanus 2013-11-27 10:19:14 -08: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
PSpdyPush.h bug 912549 - spdy/3.1 r=hurley 2013-07-26 17:22:46 -04:00
README
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 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04: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 Fix a broken #include guard, no bug 2013-09-28 17:17:44 -04:00
SpdySession3.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
SpdySession3.h Bug 919320 - Minimize the #includes in netwerk/protocol; r=mcmanus 2013-09-22 23:35:52 -04:00
SpdySession31.cpp Bug 938803 - Cancel DNS refresh requested in classes implementing nsAHttpTransaction r=mcmanus 2013-11-27 10:19:14 -08: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
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>