gecko/netwerk/protocol/http
2012-11-01 19:23:07 -04:00
..
ASpdySession.cpp
ASpdySession.h bug 790184 spdy: fix tcp send buffers to bound ping rtt r=honzab sr=biesi 2012-10-06 20:48:20 -04:00
ConnectionDiagnostics.cpp
HttpBaseChannel.cpp Bug 536324 part 2 - Change implementers of nsIChannel. r=sworkman 2012-10-22 10:51:07 -07:00
HttpBaseChannel.h Bug 536324 part 2 - Change implementers of nsIChannel. r=sworkman 2012-10-22 10:51:07 -07:00
HttpChannelChild.cpp Bug 794597 - mozbrowser doesn't send auth request off a redirect. r=jdm 2012-10-09 16:46:24 -07:00
HttpChannelChild.h
HttpChannelParent.cpp Bug 802885 - Disable offline cache entries for private channels under e10s r=jdm 2012-10-17 22:00:16 -07:00
HttpChannelParent.h Bug 794597 - mozbrowser doesn't send auth request off a redirect. r=jdm 2012-10-09 16:46:24 -07:00
HttpChannelParentListener.cpp
HttpChannelParentListener.h
ipdl.mk
Makefile.in
nsAHttpConnection.h
nsAHttpTransaction.h
nsHttp.cpp Bug 579517 follow-up: Remove NSPR types that crept in 2012-10-01 16:04:09 -04:00
nsHttp.h Bug 579517 follow-up: Remove NSPR types that crept in 2012-10-01 16:04:09 -04:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h
nsHttpAuthCache.cpp
nsHttpAuthCache.h
nsHttpAuthManager.cpp Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
nsHttpAuthManager.h Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
nsHttpBasicAuth.cpp bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
nsHttpBasicAuth.h
nsHttpChannel.cpp bug 805067 - remove redundant mozilla:: in netwerk/protocol/http r=jduell 2012-10-24 21:00:27 -04:00
nsHttpChannel.h Bug 779100 - HSTS redirect load group management fix, r=jduell 2012-09-27 21:35:08 +02:00
nsHttpChannelAuthProvider.cpp Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
nsHttpChannelAuthProvider.h Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
nsHttpConnection.h bug 795082 http remove dead or redundant code r=honzab 2012-10-01 20:10:08 -04:00
nsHttpConnectionInfo.cpp bug 790321 - dont coalesce spdy hosts with socks proxy r=honzab 2012-10-27 15:24:19 -04:00
nsHttpConnectionInfo.h bug 790321 - dont coalesce spdy hosts with socks proxy r=honzab 2012-10-27 15:24:19 -04:00
nsHttpConnectionMgr.cpp bug 805457 telemetry for proxy and websocket connections r=jduell 2012-10-27 15:24:19 -04:00
nsHttpConnectionMgr.h bug 805457 telemetry for proxy and websocket connections r=jduell 2012-10-27 15:24:19 -04:00
nsHttpDigestAuth.cpp bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
nsHttpDigestAuth.h
nsHttpHandler.cpp Merge m-c to inbound. 2012-11-01 19:23:07 -04:00
nsHttpHandler.h Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
nsHttpNTLMAuth.cpp
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
nsHttpPipeline.h
nsHttpRequestHead.cpp
nsHttpRequestHead.h bug 801826 duplicate request headers after doAuthRetry r=jduell 2012-10-24 12:42:39 -04:00
nsHttpResponseHead.cpp Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
nsHttpResponseHead.h Bug 795351: Replace LL_MAXINT, LL_MININT, LL_MAXUINT with stdint versions; r=ehsan 2012-09-28 14:55:23 -05:00
nsHttpTransaction.cpp Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
nsHttpTransaction.h Bug 791088 - Add telemetry for Connection Manager transaction time. r=mcmanus 2012-09-19 20:24:58 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl Backed out 2 changesets (bug 579517) 2012-10-25 12:32:24 -04:00
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl Bug 769283 - Add a separate HTTP auth cache for private channels. r=mayhemer 2012-10-29 16:20:03 -04:00
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpTransaction.cpp
NullHttpTransaction.h
PHttpChannel.ipdl Bug 794597 - mozbrowser doesn't send auth request off a redirect. r=jdm 2012-10-09 16:46:24 -07:00
PHttpChannelParams.h
README
SpdySession2.cpp bug 797964 remove spdy ping experiment and change default to 58s r=honzab 2012-10-25 14:20:08 -04:00
SpdySession2.h bug 797964 remove spdy ping experiment and change default to 58s r=honzab 2012-10-25 14:20:08 -04:00
SpdySession3.cpp bug 797964 remove spdy ping experiment and change default to 58s r=honzab 2012-10-25 14:20:08 -04:00
SpdySession3.h bug 797964 remove spdy ping experiment and change default to 58s r=honzab 2012-10-25 14:20:08 -04:00
SpdyStream2.cpp Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
SpdyStream2.h bug 790184 spdy: fix tcp send buffers to bound ping rtt r=honzab sr=biesi 2012-10-06 20:48:20 -04:00
SpdyStream3.cpp Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
SpdyStream3.h bug 790184 spdy: fix tcp send buffers to bound ping rtt r=honzab sr=biesi 2012-10-06 20:48:20 -04:00
TimingStruct.h
UserAgentOverrides.jsm Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07: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>