gecko/netwerk/protocol/http
2013-05-08 11:43:31 -04:00
..
ASpdySession.cpp
ASpdySession.h
ConnectionDiagnostics.cpp Back out 96a806212cac (bug 865314) for apparently causing fairly frequent failures in test_spdy.js 2013-04-24 23:45:40 -07:00
HttpBaseChannel.cpp bug 869100 complete token bucket a/b test r=honzab 2013-05-08 11:43:31 -04:00
HttpBaseChannel.h bug 869100 complete token bucket a/b test r=honzab 2013-05-08 11:43:31 -04:00
HttpChannelChild.cpp Bug 765934 - Expose XPCOM API for performing internal redirects. r=honza 2013-01-11 15:46:00 -08:00
HttpChannelChild.h Bug 765934 - Expose XPCOM API for performing internal redirects. r=honza 2013-01-11 15:46:00 -08:00
HttpChannelParent.cpp bug 750421 - remove unnecessary nsIBadCertListener2 and nsISSLErrorListener implementations r=mayhemer r=mounir r=dolske 2013-03-06 11:25:03 -08:00
HttpChannelParent.h Bug 765934 - Expose XPCOM API for performing internal redirects. r=honza 2013-01-11 15:46:00 -08:00
HttpChannelParentListener.cpp bug 750421 - remove unnecessary nsIBadCertListener2 and nsISSLErrorListener implementations r=mayhemer r=mounir r=dolske 2013-03-06 11:25:03 -08:00
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 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
moz.build Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
nsAHttpConnection.h
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 Bug 850251 - Remove Off-Main-Thread XPCWrappedJS refcounting from HTTP Activity Distributor. r=mcmanus 2013-03-15 16:02:02 -07:00
nsHttpActivityDistributor.h Bug 850251 - Remove Off-Main-Thread XPCWrappedJS refcounting from HTTP Activity Distributor. r=mcmanus 2013-03-15 16:02:02 -07:00
nsHttpAtomList.h bug 819734 - Token Bucket for Network Requests [a/b test] r=honzab 2013-04-15 09:41:27 -04:00
nsHttpAuthCache.cpp Bug 827032 - Enable FAIL_ON_WARNINGS on MSVC in netwerk/. r=jduell 2013-02-08 20:49:30 +09:00
nsHttpAuthCache.h Bug 814247 - Add auth cache jars for separate apps. r=mayhemer 2012-12-05 02:33:20 -05:00
nsHttpAuthManager.cpp Bug 814247 - Add auth cache jars for separate apps. r=mayhemer 2012-12-05 02:33:20 -05:00
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 800220 - Part 1. Replace PL_strlen with strlen. r=ehsan 2013-05-08 12:40:12 +09:00
nsHttpChannel.h bug 850968 - backout cache experiment for causing 858588 r=backout 2013-04-05 15:50:31 -04:00
nsHttpChannelAuthProvider.cpp bug 804605 - backout 766973 767158 785050 r=backout a=akeybl 2013-01-22 11:59:01 -05:00
nsHttpChannelAuthProvider.h bug 804605 - backout 766973 767158 785050 r=backout a=akeybl 2013-01-22 11:59:01 -05:00
nsHttpChunkedDecoder.cpp Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
nsHttpChunkedDecoder.h
nsHttpConnection.cpp bug 602814 - fix parsing of connection http response header r=mcmanus 2013-04-18 09:00:00 -04:00
nsHttpConnection.h Bug 850252 - Remove Off-Main-Thread XPCWrappedJS refcounting from nsHttpConnection. r=mcmanus 2013-03-12 09:58:00 -04:00
nsHttpConnectionInfo.cpp
nsHttpConnectionInfo.h
nsHttpConnectionMgr.cpp bug 855185 ResetIPFamily called off socket thread r=honzab 2013-04-30 23:43:32 -04:00
nsHttpConnectionMgr.h bug 855185 ResetIPFamily called off socket thread r=honzab 2013-04-30 23:43:32 -04:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h
nsHttpHandler.cpp bug 869100 complete token bucket a/b test r=honzab 2013-05-08 11:43:31 -04:00
nsHttpHandler.h bug 869100 complete token bucket a/b test r=honzab 2013-05-08 11:43:31 -04:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h Bug 845273 - Backout Access-Control-Allow-Origin checks (bug 814117) for site breakage r=jduell 2013-03-14 13:59:33 -07:00
nsHttpNTLMAuth.cpp bug 804605 - backout 766973 767158 785050 r=backout a=akeybl 2013-01-22 11:59:01 -05:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
nsHttpPipeline.h
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
nsHttpResponseHead.h
nsHttpTransaction.cpp bug 819734 - Token Bucket for Network Bursts part 1/2 [base] r=honzab 2013-04-15 08:50:35 -04:00
nsHttpTransaction.h bug 819734 - Token Bucket for Network Bursts part 1/2 [base] r=honzab 2013-04-15 08:50:35 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl bug 804605 - backout 766973 767158 785050 r=backout a=akeybl 2013-01-22 11:59:01 -05:00
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl Bug 814247 - Add auth cache jars for separate apps. r=mayhemer 2012-12-05 02:33:20 -05:00
nsIHttpChannel.idl Bug 765934 - Expose XPCOM API for performing internal redirects. r=honza 2013-01-11 15:46:00 -08: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 869100 complete token bucket a/b test r=honzab 2013-05-08 11:43:31 -04:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpTransaction.cpp
NullHttpTransaction.h
PHttpChannel.ipdl Bug 765934 - Expose XPCOM API for performing internal redirects. r=honza 2013-01-11 15:46:00 -08:00
PHttpChannelParams.h
README
SpdySession2.cpp bug 788001 - incorrect spdy assert conditions r=honzab 2013-03-12 15:41:56 -04:00
SpdySession2.h bug 819044 backout changes to spdy goaway handling r=backout 2013-02-13 10:50:42 -05:00
SpdySession3.cpp bug 788001 - incorrect spdy assert conditions r=honzab 2013-03-12 15:41:56 -04:00
SpdySession3.h bug 819044 backout changes to spdy goaway handling r=backout 2013-02-13 10:50:42 -05:00
SpdyStream2.cpp Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
SpdyStream2.h bug 819044 backout changes to spdy goaway handling r=backout 2013-02-13 10:50:42 -05:00
SpdyStream3.cpp Bug 827824 - Use uint8_t for mTxInlineFrame. r=mcmanus 2013-01-17 08:25:03 +09:00
SpdyStream3.h bug 819044 backout changes to spdy goaway handling r=backout 2013-02-13 10:50:42 -05:00
TimingStruct.h
UserAgentOverrides.jsm Bug 822551 - Initialize the user agent overrides in content process frames. r=dao,vingtetun 2013-01-07 17:47:01 +01: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>