gecko/netwerk/protocol/http
2012-05-10 13:11:10 -04:00
..
HttpBaseChannel.cpp
HttpBaseChannel.h
HttpChannelChild.cpp Bug 743076 - Suppress warning warning C4355: 'this' : used in base member initializer list in HttpChannelChild and FTPChannelChild, r=cbiesinger 2012-04-05 00:03:14 -07:00
HttpChannelChild.h Backed out changeset 5aaec7f808b6 2012-03-15 20:55:44 -07:00
HttpChannelParent.cpp Bug 715837 - Crash @ mozilla::net::HttpChannelParent::RecvMarkOfflineCacheEntryAsForeign, r=jduell 2012-05-07 13:20:21 +02:00
HttpChannelParent.h Bug 715837 - Crash @ mozilla::net::HttpChannelParent::RecvMarkOfflineCacheEntryAsForeign, r=jduell 2012-05-07 13:20:21 +02:00
HttpChannelParentListener.cpp Bug 605180 - Fix build warnings in netwerk/. r=jduell 2012-04-07 14:25:00 -07:00
HttpChannelParentListener.h
ipdl.mk
Makefile.in bug 729133 - internal necko speculative connections r=honzab 2012-04-25 08:54:42 -04:00
nsAHttpConnection.h bug 742935: fix landing problem with 603512 r=honzab 2012-04-09 10:21:17 -04:00
nsAHttpTransaction.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
nsHttp.cpp bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
nsHttp.h bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h bug 597684 Implement HTTP Assoc-req and Banned Pipelines on nsHttpConnectionInfo r=honzab 2012-03-22 19:39:31 -04:00
nsHttpAuthCache.cpp Backout 17deb5f61b4d (bug 150073) due to build bustage. a=shouldausedtryfirst 2012-04-03 20:22:42 -04:00
nsHttpAuthCache.h
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 748647 - INHIBIT_PERSISTENT_CACHING was set to early, r=michal 2012-05-09 14:58:39 +02:00
nsHttpChannel.h Bug 715837 - Crash @ mozilla::net::HttpChannelParent::RecvMarkOfflineCacheEntryAsForeign, r=jduell 2012-05-07 13:20:21 +02:00
nsHttpChannelAuthProvider.cpp
nsHttpChannelAuthProvider.h
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h bug 742935: fix landing problem with 603512 r=honzab 2012-04-09 10:21:17 -04:00
nsHttpConnection.cpp bug 752648 - backout patch for breaking cert override dialog r=backout 2012-05-10 13:11:10 -04:00
nsHttpConnection.h bug 739522 allow parallelism for hosts that exhibit mixed spdy/http r=honzab 2012-05-03 20:32:12 -04:00
nsHttpConnectionInfo.cpp bug 729133 - internal necko speculative connections r=honzab 2012-04-25 08:54:42 -04:00
nsHttpConnectionInfo.h bug 729133 - internal necko speculative connections r=honzab 2012-04-25 08:54:42 -04:00
nsHttpConnectionMgr.cpp bug 726366 - support tunneling spdy through proxies r=honzab 2012-05-07 10:27:25 -04:00
nsHttpConnectionMgr.h bug 738914 - orange websocket pipeline::isdone from main thread r=jduell 2012-04-25 22:02:12 -04:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h
nsHttpHandler.cpp Bug 588909 - Replace Gecko/<date> with Gecko/<version> in UA string. r=bz sr=gerv 2012-04-30 13:06:45 +02:00
nsHttpHandler.h bug 723628 - speculative connect hint interface r=honzab sr=biesi 2012-04-25 08:54:42 -04:00
nsHttpHeaderArray.cpp Bug 742174 - Allow empty Location header. r=mcmanus 2012-04-09 16:50:35 -07:00
nsHttpHeaderArray.h Bug 742174 - Allow empty Location header. r=mcmanus 2012-04-09 16:50:35 -07:00
nsHttpNTLMAuth.cpp Bug 452781 - Allow specifying wildcard that matches all simple netbiosnames in network.automatic-ntlm-auth.trusted-uris, r=honzab 2012-02-17 16:24:31 +01:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp bug 742935: fix landing problem with 603512 r=honzab 2012-04-09 10:21:17 -04:00
nsHttpPipeline.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar 2012-04-24 14:43:00 -04:00
nsHttpResponseHead.h
nsHttpTransaction.cpp bug 726366 - support tunneling spdy through proxies r=honzab 2012-05-07 10:27:25 -04:00
nsHttpTransaction.h bug 742827 - fix problem with landing of bug 671591 r=honzab 2012-04-05 18:37:57 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpTransaction.cpp bug 729133 - internal necko speculative connections r=honzab 2012-04-25 08:54:42 -04:00
NullHttpTransaction.h bug 729133 - internal necko speculative connections r=honzab 2012-04-25 08:54:42 -04:00
PHttpChannel.ipdl
PHttpChannelParams.h Bug 605180 - Fix build warnings in netwerk/. r=jduell 2012-04-07 14:25:00 -07:00
README
SpdySession.cpp bug 603512 - large objects block pipelines r=honzab 2012-03-22 19:39:31 -04:00
SpdySession.h bug 745379 - mistake in spdy/2 spec reversed actual priority values r=honzab 2012-04-15 13:11:23 -04:00
SpdyStream.cpp bug 745379 - mistake in spdy/2 spec reversed actual priority values r=honzab 2012-04-15 13:11:23 -04:00
SpdyStream.h
TimingStruct.h

                                                        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>