gecko/netwerk/protocol/http
2011-12-02 10:28:56 -05:00
..
HttpBaseChannel.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
HttpBaseChannel.h Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
HttpChannelChild.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
HttpChannelChild.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
HttpChannelParent.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
HttpChannelParent.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
HttpChannelParentListener.cpp Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
HttpChannelParentListener.h
ipdl.mk
Makefile.in bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsAHttpConnection.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsAHttpTransaction.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttp.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttp.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpActivityDistributor.cpp Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpActivityDistributor.h
nsHttpAtomList.h Bug 676059 - Make redirect prompting depend on HTTP-safeness of method, not presence of request body. r=bz 2011-10-14 17:46:33 +02:00
nsHttpAuthCache.cpp Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpAuthCache.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpBasicAuth.h
nsHttpChannel.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpChannel.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpChannelAuthProvider.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpChannelAuthProvider.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpChunkedDecoder.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpChunkedDecoder.h Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpConnection.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpConnection.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpConnectionInfo.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpConnectionInfo.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpConnectionMgr.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpConnectionMgr.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpDigestAuth.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpDigestAuth.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpHandler.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpHandler.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpHeaderArray.cpp Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpHeaderArray.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpNTLMAuth.cpp Bug 573043 - Enable Extended Protection (channel and service bindng) for NTLM authentication, r=jmathies 2011-11-09 18:18:59 +01:00
nsHttpNTLMAuth.h Bug 573043 - Enable Extended Protection (channel and service bindng) for NTLM authentication, r=jmathies 2011-11-09 18:18:59 +01:00
nsHttpPipeline.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpPipeline.h bug 671875 pipeline transport event fixups r=honzab 2011-12-01 09:19:41 -05:00
nsHttpRequestHead.cpp Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpRequestHead.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
nsHttpResponseHead.cpp Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpResponseHead.h Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron 2011-10-17 10:59:28 -04:00
nsHttpTransaction.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsHttpTransaction.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl bugzilla 640213 Implement RFC 2616 "Upgrade" (Section 14.42) r=biesi sr=bz 2011-05-19 19:43:37 -04:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl Bug 668642 - Make nsIHttpHeaderVisitor a [function] interface. r=bz 2011-06-30 23:55:56 +02:00
nsIHttpProtocolHandler.idl
PHttpChannel.ipdl Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
PHttpChannelParams.h Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
README
SpdySession.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
SpdySession.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
SpdyStream.cpp bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
SpdyStream.h bug 528222 Basic SPDY web transport support. r=honzab r=bsmith sr=biesi 2011-12-02 10:28:56 -05:00
TimingStruct.h Bug 658822 - Fix implementation of DNS timing in nsITimedChannel; r=jduell 2011-05-22 21:29:42 -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>