gecko/netwerk/protocol/http
2012-12-12 10:40:33 -05:00
..
ASpdySession.cpp
ASpdySession.h
ConnectionDiagnostics.cpp
HttpBaseChannel.cpp Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-20 14:47:07 -05:00
HttpBaseChannel.h Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-20 14:47:07 -05:00
HttpChannelChild.cpp Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-20 14:47:07 -05:00
HttpChannelChild.h Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-20 14:47:07 -05:00
HttpChannelParent.cpp Bug 782542 - Secure necko IPDL usage. r=ted,jduell 2012-12-12 10:40:33 -05:00
HttpChannelParent.h Bug 782542 - Secure necko IPDL usage. r=ted,jduell 2012-12-12 10:40:33 -05:00
HttpChannelParentListener.cpp
HttpChannelParentListener.h
HttpInfo.cpp Bug 783205 - Networking Dashboard. r=mcmanus, r=jorendorff, sr=biesi 2012-12-10 09:13:55 -05:00
HttpInfo.h Bug 783205 - Networking Dashboard. r=mcmanus, r=jorendorff, sr=biesi 2012-12-10 09:13:55 -05:00
ipdl.mk
Makefile.in Bug 783205 - Networking Dashboard. r=mcmanus, r=jorendorff, sr=biesi 2012-12-10 09:13:55 -05:00
nsAHttpConnection.h Bug 812203 - Ensure we don't try to set security callbacks on missing connections. r=mayhemer 2012-11-17 13:27:01 +00:00
nsAHttpTransaction.h bug 822456 - spdy stream id out of order r=honzab 2012-12-18 17:14:21 -05:00
nsHttp.cpp
nsHttp.h bug 792438 - part 2 block network image loads on head css,js r=honzab sr=bz 2012-12-04 18:06:29 -05:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h Bug 814117 - Forbid multiple Access-Control-Allow-Origin headers in HTTP responses. r=bz 2012-11-28 10:57:34 -08:00
nsHttpAuthCache.cpp Backout 3bcd9a5a33a2 (bug 814247), d9546d42054c & 8b6edf9f6b87 (bug 814638) for failures in test_bug814638.xul and also crashes on a CLOSED TREE 2012-12-19 23:46:07 +00:00
nsHttpAuthCache.h Backout 3bcd9a5a33a2 (bug 814247), d9546d42054c & 8b6edf9f6b87 (bug 814638) for failures in test_bug814638.xul and also crashes on a CLOSED TREE 2012-12-19 23:46:07 +00:00
nsHttpAuthManager.cpp Backout 3bcd9a5a33a2 (bug 814247), d9546d42054c & 8b6edf9f6b87 (bug 814638) for failures in test_bug814638.xul and also crashes on a CLOSED TREE 2012-12-19 23:46:07 +00:00
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp bug 792438 part 3: a kill switch r=honzab 2012-12-04 18:06:29 -05:00
nsHttpChannel.h bug 792438 - part 2 block network image loads on head css,js r=honzab sr=bz 2012-12-04 18:06:29 -05:00
nsHttpChannelAuthProvider.cpp Backout 3bcd9a5a33a2 (bug 814247), d9546d42054c & 8b6edf9f6b87 (bug 814638) for failures in test_bug814638.xul and also crashes on a CLOSED TREE 2012-12-19 23:46:07 +00:00
nsHttpChannelAuthProvider.h
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp bug 816685 expand caps in protocol/http to 32bits r=jduell 2012-11-29 20:34:35 -05:00
nsHttpConnection.h Bug 783205 - Networking Dashboard. r=mcmanus, r=jorendorff, sr=biesi 2012-12-10 09:13:55 -05:00
nsHttpConnectionInfo.cpp
nsHttpConnectionInfo.h
nsHttpConnectionMgr.cpp Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-20 14:47:07 -05:00
nsHttpConnectionMgr.h Bug 783205 - Networking Dashboard. r=mcmanus, r=jorendorff, sr=biesi 2012-12-10 09:13:55 -05:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h
nsHttpHandler.cpp Bug 699806 - Enable Telemetry by default on Nightly and Aurora channels (Desktop), r=mak77 2012-12-08 18:41:23 +01:00
nsHttpHandler.h bug 792438 part 3: a kill switch r=honzab 2012-12-04 18:06:29 -05:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h Bug 814117 - Forbid multiple Access-Control-Allow-Origin headers in HTTP responses. r=bz 2012-11-28 10:57:34 -08:00
nsHttpNTLMAuth.cpp
nsHttpNTLMAuth.h
nsHttpPipeline.cpp bug 816685 expand caps in protocol/http to 32bits r=jduell 2012-11-29 20:34:35 -05:00
nsHttpPipeline.h
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp
nsHttpResponseHead.h
nsHttpTransaction.cpp Bug 813489 - Update the HTTP connection's security callbacks from the socket thread. r=mayhemer 2012-12-05 17:10:19 -05:00
nsHttpTransaction.h Bug 813489 - Update the HTTP connection's security callbacks from the socket thread. r=mayhemer 2012-12-05 17:10:19 -05:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl Backout 3bcd9a5a33a2 (bug 814247), d9546d42054c & 8b6edf9f6b87 (bug 814638) for failures in test_bug814638.xul and also crashes on a CLOSED TREE 2012-12-19 23:46:07 +00:00
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl bug 792438 part 1 - identify css and head-based-js as dedicated network resources r=bz 2012-12-04 18:06:29 -05:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl Bug 800799 - http-on-modify-request now called after JS that started the load is no longer on the stack. r=bz 2012-11-27 11:54:58 -08:00
NullHttpTransaction.cpp bug 816685 expand caps in protocol/http to 32bits r=jduell 2012-11-29 20:34:35 -05:00
NullHttpTransaction.h bug 816685 expand caps in protocol/http to 32bits r=jduell 2012-11-29 20:34:35 -05:00
PHttpChannel.ipdl Bug 807678: Don't proliferate NSPR DNS types beyond the host resolver itself. Make it possible to easily hook up other host resolvers. r=sworkman 2012-12-20 14:47:07 -05:00
PHttpChannelParams.h
README
SpdySession2.cpp bug 819044 - better spdy stream cleanup when handling goaway r=honzab 2012-12-20 13:27:15 -05:00
SpdySession2.h bug 819044 - better spdy stream cleanup when handling goaway r=honzab 2012-12-20 13:27:15 -05:00
SpdySession3.cpp bug 819044 - better spdy stream cleanup when handling goaway r=honzab 2012-12-20 13:27:15 -05:00
SpdySession3.h bug 819044 - better spdy stream cleanup when handling goaway r=honzab 2012-12-20 13:27:15 -05:00
SpdyStream2.cpp bug 822456 - spdy stream id out of order r=honzab 2012-12-18 17:14:21 -05:00
SpdyStream2.h bug 819044 - better spdy stream cleanup when handling goaway r=honzab 2012-12-20 13:27:15 -05:00
SpdyStream3.cpp bug 822456 - spdy stream id out of order r=honzab 2012-12-18 17:14:21 -05:00
SpdyStream3.h bug 819044 - better spdy stream cleanup when handling goaway r=honzab 2012-12-20 13:27:15 -05: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>