gecko-dev/netwerk/protocol/http
Daniel Stenberg 620f55a660 Bug 1005821 - http2: store streamID on correct index within frame. r=hurley
Http2Session::GenerateGoAway() inserts the 'mOutgoingGoAwayID' at index
7 while the comment (and the current http2 spec draft-12) says it should
be at index 8.
2014-05-05 10:58:00 +02:00
..
ASpdySession.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
ASpdySession.h bug 965348 - control SocketTransportService::Poll tick during spdy idle r=hurley 2014-01-30 02:29:20 -05:00
ConnectionDiagnostics.cpp bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Compression.cpp Bug 1003320 - Send HPACK buffer size updates when receiving SETTINGS_HEADER_TABLE_SIZE. r=mcmanus 2014-04-29 18:46:07 -07:00
Http2Compression.h Bug 1003320 - Send HPACK buffer size updates when receiving SETTINGS_HEADER_TABLE_SIZE. r=mcmanus 2014-04-29 18:46:07 -07:00
Http2HuffmanIncoming.h Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
Http2HuffmanOutgoing.h Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
Http2Push.cpp Bug 1001022 part 1 - http/2 draft 12 client implementation. r=mcmanus 2014-04-29 18:46:03 -07:00
Http2Push.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
Http2Session.cpp Bug 1005821 - http2: store streamID on correct index within frame. r=hurley 2014-05-05 10:58:00 +02:00
Http2Session.h Bug 1001022 part 1 - http/2 draft 12 client implementation. r=mcmanus 2014-04-29 18:46:03 -07:00
Http2Stream.cpp Bug 1001022 part 1 - http/2 draft 12 client implementation. r=mcmanus 2014-04-29 18:46:03 -07:00
Http2Stream.h Bug 1001022 part 1 - http/2 draft 12 client implementation. r=mcmanus 2014-04-29 18:46:03 -07:00
HttpBaseChannel.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
HttpBaseChannel.h Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab 2014-04-21 09:34:33 -04:00
HttpChannelChild.cpp Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab 2014-04-21 09:34:33 -04:00
HttpChannelChild.h Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab 2014-04-21 09:34:33 -04:00
HttpChannelParent.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
HttpChannelParent.h Bug 910010 - Implementation of PFileDescriptorSet - part 2, r=bent 2014-03-25 18:37:28 +00:00
HttpChannelParentListener.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
HttpChannelParentListener.h Bug 975338 - Enable diverting of HTTP and FTP channels back to parent process from child r=jduell 2014-03-10 23:04:28 +01:00
HttpInfo.cpp Bug 558623 - Split out HTTP LOG macro definition from nsHttp.h r=jdm 2013-06-22 09:01:06 -07:00
HttpInfo.h Bug 981150: Use nsTArrayForwardDeclare.h more. r=ehsan 2014-03-15 12:00:17 -07:00
HttpLog.h Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
NullHttpTransaction.cpp Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg 2014-03-15 12:00:15 -07:00
NullHttpTransaction.h bug 970279 - tie null transactions to cancel and timeout events r=hurley 2014-02-07 17:30:36 -05:00
PHttpChannel.ipdl Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab 2014-04-21 09:34:33 -04:00
PHttpChannelParams.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
PSpdyPush.h bug 950768 - http/2-draft08 pref off r=hurley r=mcmanus 2013-10-09 17:21:49 -07:00
README bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
SpdyPush3.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
SpdyPush3.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
SpdyPush31.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
SpdyPush31.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
SpdySession3.cpp Bug 986082 - add memory reporters for SPDY zlib buffers; r=hurley,njn 2014-03-20 14:22:17 -04:00
SpdySession3.h bug 988421 - spdy push concurrency mismatch r=hurley 2014-03-26 12:48:23 -04:00
SpdySession31.cpp Bug 986082 - add memory reporters for SPDY zlib buffers; r=hurley,njn 2014-03-20 14:22:17 -04:00
SpdySession31.h bug 988421 - spdy push concurrency mismatch r=hurley 2014-03-26 12:48:23 -04:00
SpdyStream3.cpp bug 988421 - spdy push concurrency mismatch r=hurley 2014-03-26 12:48:23 -04:00
SpdyStream3.h Bug 986082 - add memory reporters for SPDY zlib buffers; r=hurley,njn 2014-03-20 14:22:17 -04:00
SpdyStream31.cpp bug 988421 - spdy push concurrency mismatch r=hurley 2014-03-26 12:48:23 -04:00
SpdyStream31.h Bug 986082 - add memory reporters for SPDY zlib buffers; r=hurley,njn 2014-03-20 14:22:17 -04:00
SpdyZlibReporter.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
SpdyZlibReporter.h Bug 986082 - add memory reporters for SPDY zlib buffers; r=hurley,njn 2014-03-20 14:22:17 -04:00
TimingStruct.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
UserAgentOverrides.jsm Bug 963592 - Perform replacements for updated UA overrides. r=fabrice 2014-01-28 09:04:39 -05:00
UserAgentUpdates.jsm Bug 942470 - Don't apply user agent update if updates have been disabled. r=fabrice 2013-12-06 10:22:18 -05:00
http2_huffman_table.txt Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
make_incoming_tables.py Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
make_outgoing_tables.py Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
moz.build Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
nsAHttpConnection.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsAHttpTransaction.h bug 970279 - tie null transactions to cancel and timeout events r=hurley 2014-02-07 17:30:36 -05:00
nsHttp.cpp bug 477578 - http methods should be case sensitive r=hurley 2014-03-18 12:36:18 -04:00
nsHttp.h Bug 1001022 part 1 - http/2 draft 12 client implementation. r=mcmanus 2014-04-29 18:46:03 -07:00
nsHttpActivityDistributor.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpActivityDistributor.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpAtomList.h Bug 995070 - Add preference to send 'Prefer: Safe' header as defined by draft-nottingham-safe-hint-01. r=mcmanus 2014-04-13 21:39:13 -07:00
nsHttpAuthCache.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpAuthCache.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpAuthManager.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpAuthManager.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpBasicAuth.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpBasicAuth.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpChannel.cpp Bug 1003306 - part 2 - use services::GetPermissionManager everywhere that's appropriate; r=ehsan 2014-04-29 13:27:26 -04:00
nsHttpChannel.h Bug 913810 - make nsHttpChannel properly react to FILE_NOT_FOUND from the cache, r=michal 2014-04-26 18:42:07 +02:00
nsHttpChannelAuthProvider.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpChannelAuthProvider.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpChunkedDecoder.cpp Bug 959100 - Make ParseChunkRemaining detect chunk size overflow. r=jduell 2014-01-17 17:07:29 +01:00
nsHttpChunkedDecoder.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpConnection.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpConnection.h Bug 997690 - nsHttpConnection::IdleTimeout default can be set internally r=hurley 2014-04-16 12:34:56 -04:00
nsHttpConnectionInfo.cpp Bug 698730 - Add username to connection cache hash so NTLM gets correct connection, r=mcmanus 2014-04-26 12:01:39 -07:00
nsHttpConnectionInfo.h Bug 698730 - Add username to connection cache hash so NTLM gets correct connection, r=mcmanus 2014-04-26 12:01:39 -07:00
nsHttpConnectionMgr.cpp bug 1003935 - call dontreuse() on reclaimed conns with transaction refs r=sworkman 2014-04-30 13:15:46 -04:00
nsHttpConnectionMgr.h bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpDigestAuth.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpDigestAuth.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpHandler.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpHandler.h Bug 995070 - Add preference to send 'Prefer: Safe' header as defined by draft-nottingham-safe-hint-01. r=mcmanus 2014-04-13 21:39:13 -07:00
nsHttpHeaderArray.cpp bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpHeaderArray.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpNTLMAuth.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpNTLMAuth.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpPipeline.cpp bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpPipeline.h bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpRequestHead.cpp bug 477578 - http methods should be case sensitive r=hurley 2014-03-18 12:36:18 -04:00
nsHttpRequestHead.h bug 477578 - http methods should be case sensitive r=hurley 2014-03-18 12:36:18 -04:00
nsHttpResponseHead.cpp Bug 959333 - HTTP/2 should say so in the status line. r=mcmanus 2014-01-29 13:42:19 -08:00
nsHttpResponseHead.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpTransaction.cpp bug 1003935 - call dontreuse() on reclaimed conns with transaction refs r=sworkman 2014-04-30 13:15:46 -04:00
nsHttpTransaction.h Bug 949956 - Move duplicated code to NetStatistics.h. r=mcmanus 2014-01-14 17:55:29 +08:00
nsIHttpActivityObserver.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpAuthManager.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpAuthenticableChannel.idl Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04:00
nsIHttpAuthenticator.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpChannel.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04: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 947391 - Add a timeout for initial HTTP responses r=mcmanus 2013-12-18 15:03:48 -08:00
nsIHttpEventSink.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl bug 871289 [2 of 2] fix trailing whitespace in netwerk/protocol/http/* r=jduell 2013-05-16 09:30:42 -04:00

README

                                                        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>