gecko/netwerk/protocol/http
Nicholas Nethercote 8b3951c20f Bug 1057912 - Privatize most of PLDHashTable's fields. r=roc.
--HG--
extra : rebase_source : 0f55e70b63d9c191fbd9418cb1177ff534deeed9
2014-08-25 16:56:33 -07:00
..
ASpdySession.cpp bug 1050063 - consider tls client hello version in alpn/npn offer list r=hurley r=keeler 2014-08-15 09:39:53 -04:00
ASpdySession.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
ConnectionDiagnostics.cpp
http2_huffman_table.txt
Http2Compression.cpp Bug 1054173 - Do not fail connections when receiving request headers. r=mcmanus 2014-08-18 14:59:32 -07:00
Http2Compression.h Bug 1054173 - Do not fail connections when receiving request headers. r=mcmanus 2014-08-18 14:59:32 -07:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp
Http2Push.h
Http2Session.cpp Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
Http2Session.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
Http2Stream.cpp Bug 1054173 - Do not fail connections when receiving request headers. r=mcmanus 2014-08-18 14:59:32 -07:00
Http2Stream.h bug 1037082 - part 3/3 407 proxy auth for https over https r=hurley 2014-07-07 11:43:11 -04:00
HttpBaseChannel.cpp Bug 1043256 - If unKnownDecoder needs to be used, Content_Encodings will be loaded before OnStartRequest is called on the listener. This makes an error in e10s because Content_Encodings will be loaded before HttpChannelParent can disable them. r=bagder 2014-08-13 10:52:00 -04:00
HttpBaseChannel.h Bug 1043256 - If unKnownDecoder needs to be used, Content_Encodings will be loaded before OnStartRequest is called on the listener. This makes an error in e10s because Content_Encodings will be loaded before HttpChannelParent can disable them. r=bagder 2014-08-13 10:52:00 -04:00
HttpChannelChild.cpp Bug 1054572 - Remove redundant references to HTTP cache v1 API r=mayhemer 2014-08-22 15:17:32 -07:00
HttpChannelChild.h bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
HttpChannelParent.cpp Backed out changeset 1ed271ffb59c (bug 786419) bug causing bug 786419 a=backout 2014-08-26 16:34:46 -07:00
HttpChannelParent.h Backed out changeset 1ed271ffb59c (bug 786419) bug causing bug 786419 a=backout 2014-08-26 16:34:46 -07:00
HttpChannelParentListener.cpp
HttpChannelParentListener.h Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h
make_incoming_tables.py
make_outgoing_tables.py
moz.build Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09:00
nsAHttpConnection.h Bug 354493 - revert Add nsINetworkZonePolicy to protect resources loaded from private IPs r=backout a=backout 2014-07-24 10:05:36 -04:00
nsAHttpTransaction.h
nsHttp.cpp Bug 1057912 - Privatize most of PLDHashTable's fields. r=roc. 2014-08-25 16:56:33 -07:00
nsHttp.h Bug 1046892 part 1 - HTTP/2 draft 14 client implementation r=mcmanus 2014-08-05 08:41:09 -07:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h
nsHttpAuthCache.cpp
nsHttpAuthCache.h Bug 1047782 - Fix some bad impliciit constructors in netwerk/; r=mcmanus 2014-08-05 09:20:50 -04:00
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Backed out changeset 1ed271ffb59c (bug 786419) bug causing bug 786419 a=backout 2014-08-26 16:34:46 -07:00
nsHttpChannel.h Bug 1054572 - Remove redundant references to HTTP cache v1 API r=mayhemer 2014-08-22 15:17:32 -07:00
nsHttpChannelAuthProvider.cpp
nsHttpChannelAuthProvider.h
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
nsHttpConnection.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
nsHttpConnectionInfo.cpp
nsHttpConnectionInfo.h
nsHttpConnectionMgr.cpp Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
nsHttpConnectionMgr.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h
nsHttpHandler.cpp Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
nsHttpHandler.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h
nsHttpNTLMAuth.cpp
nsHttpNTLMAuth.h
nsHttpPipeline.cpp
nsHttpPipeline.h bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp
nsHttpResponseHead.h
nsHttpTransaction.cpp Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
nsHttpTransaction.h bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl Bug 1048579 - Update the nsIChannel UUID. rs=Ms2ger 2014-08-25 09:55:57 -04:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 915024 - Add ForcePending for HttpChannel. r=jduell 2014-07-10 10:13:00 -04:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpTransaction.cpp
NullHttpTransaction.h
PHttpChannel.ipdl
PHttpChannelParams.h
PSpdyPush.h
README
SpdyPush3.cpp
SpdyPush3.h
SpdyPush31.cpp
SpdyPush31.h
SpdySession3.cpp Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
SpdySession3.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
SpdySession31.cpp Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
SpdySession31.h Backed out 7 changesets (bug 939318) for frequent Win7/Win8 xpcshell failures. a=backout 2014-08-26 15:56:51 -04:00
SpdyStream3.cpp Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc. 2014-08-06 06:31:21 -07:00
SpdyStream3.h bug 1037082 - part 3/3 407 proxy auth for https over https r=hurley 2014-07-07 11:43:11 -04:00
SpdyStream31.cpp Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc. 2014-08-06 06:31:21 -07:00
SpdyStream31.h bug 1037082 - part 3/3 407 proxy auth for https over https r=hurley 2014-07-07 11:43:11 -04:00
SpdyZlibReporter.cpp
SpdyZlibReporter.h
TimingStruct.h
TunnelUtils.cpp Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
TunnelUtils.h bug 1040930 - part 4 wss over https proxying r=hurley 2014-07-18 14:59:01 -04:00
UserAgentOverrides.jsm
UserAgentUpdates.jsm

                                                        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>