gecko-dev/netwerk/protocol/http
Nicholas Hurley d9f98515e7 Bug 1025071 - Save header table space by not indexing :path r=mcmanus 2014-06-13 15:02:05 -07:00
..
ASpdySession.cpp bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
ASpdySession.h bug 1013934 - NS_ERROR_CORRUPTED_CONTENT should be a stream local error in http2 r=hurley 2014-05-21 14:09:48 -04: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 1025071 - Save header table space by not indexing :path r=mcmanus 2014-06-13 15:02:05 -07:00
Http2Compression.h Bug 1025071 - Save header table space by not indexing :path r=mcmanus 2014-06-13 15:02:05 -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 378637 part 10 - implement nsAHttpTransaction::ConnectionInfo r=hurley 2014-04-20 12:01:35 -04: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 1025075 - http2 CONNECT streams should have consistent priority r=hurley 2014-06-13 09:29:00 -04:00
Http2Session.h bug 378637 part 14 - https proxying for spdy31 and http2 r=hurley 2014-05-16 11:46:13 -04:00
Http2Stream.cpp Bug 869836 - Part 11: Use `Append('c')` instead of `AppendLiteral("c")`. r=ehsan 2014-05-26 21:54:58 +03:00
Http2Stream.h bug 1012825 - https proxying over http/2 connect stream r=hurley 2014-05-19 15:37:35 -04:00
HttpBaseChannel.cpp Bug 1006575 - Redirected iframe inserts 2 entries into resource timing buffer 2014-06-05 22:24:47 +03:00
HttpBaseChannel.h bug 1003566 - part 1 - allowSTS attribute to nsIHttpChannel r=honzab 2014-06-04 09:57:15 -07:00
HttpChannelChild.cpp Bug 879475 - Part 006. Fix http auth prompts for nested content processes r=honzab 2014-06-11 13:44:36 +08:00
HttpChannelChild.h Bug 1022049. Switch to <intrin.h>. r=nfroyd 2014-06-09 17:26:55 -04:00
HttpChannelParent.cpp Bug 879475 - Part 006. Fix http auth prompts for nested content processes r=honzab 2014-06-11 13:44:36 +08:00
HttpChannelParent.h Bug 879475 - Part 006. Fix http auth prompts for nested content processes r=honzab 2014-06-11 13:44:36 +08: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
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 378637 part 13 - https proxying changes to casting and trans lifecycle r=hurley 2014-05-16 11:46:12 -04:00
NullHttpTransaction.h bug 378637 part 13 - https proxying changes to casting and trans lifecycle r=hurley 2014-05-16 11:46:12 -04: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
SpdyPush3.cpp bug 378637 part 10 - implement nsAHttpTransaction::ConnectionInfo r=hurley 2014-04-20 12:01:35 -04:00
SpdyPush3.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
SpdyPush31.cpp bug 378637 part 10 - implement nsAHttpTransaction::ConnectionInfo r=hurley 2014-04-20 12:01:35 -04:00
SpdyPush31.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
SpdySession3.cpp bug 1025075 - http2 CONNECT streams should have consistent priority r=hurley 2014-06-13 09:29:00 -04:00
SpdySession3.h bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
SpdySession31.cpp bug 1025075 - http2 CONNECT streams should have consistent priority r=hurley 2014-06-13 09:29:00 -04:00
SpdySession31.h bug 378637 part 14 - https proxying for spdy31 and http2 r=hurley 2014-05-16 11:46:13 -04:00
SpdyStream3.cpp bug 1021396 - duplicate spdy syn_stream can hang necko thread r=hurley 2014-06-06 11:18:00 -04:00
SpdyStream3.h bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
SpdyStream31.cpp bug 1021396 - duplicate spdy syn_stream can hang necko thread r=hurley 2014-06-06 11:18:00 -04:00
SpdyStream31.h bug 378637 part 14 - https proxying for spdy31 and http2 r=hurley 2014-05-16 11:46:13 -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
TunnelUtils.cpp bug 1014589 - problem with https proxying and http pipelines r=hurley 2014-05-22 17:49:04 -04:00
TunnelUtils.h bug 1014589 - problem with https proxying and http pipelines r=hurley 2014-05-22 17:49:04 -04: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 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
nsAHttpConnection.h bug 378637 part 13 - https proxying changes to casting and trans lifecycle r=hurley 2014-05-16 11:46:12 -04:00
nsAHttpTransaction.h bug 378637 part 13 - https proxying changes to casting and trans lifecycle r=hurley 2014-05-16 11:46:12 -04:00
nsHttp.cpp bug 378637 part 5 - move Spdy*::EnsureBuffer to nsHttp r=hurley 2014-04-15 17:06:59 -04:00
nsHttp.h bug 378637 part 5 - move Spdy*::EnsureBuffer to nsHttp r=hurley 2014-04-15 17:06:59 -04: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 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04: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 1003566 - part 1 - allowSTS attribute to nsIHttpChannel r=honzab 2014-06-04 09:57:15 -07:00
nsHttpChannel.h Bug 974018: Implement nsIRedirectHistory (r=mayhemer) 2014-05-22 12:58:23 -07: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 1017769 - Make the CONNECT Host header the same as the Request-URI. r=mcmanus 2014-05-29 11:01:02 -07:00
nsHttpConnection.h bug 378637 part 11 - move MakeConnectString() to nsHttpHandler r=hurley 2014-04-22 15:46:06 -04:00
nsHttpConnectionInfo.cpp bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
nsHttpConnectionInfo.h bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
nsHttpConnectionMgr.cpp bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04:00
nsHttpConnectionMgr.h bug 378637 part 12 - proxy over TLS (i.e. https proxying) r=hurley 2014-04-16 09:52:43 -04: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 995430 - send header when user is signed into a children\'s account. r=mcmanus 2014-05-05 14:30:42 -07:00
nsHttpHandler.h Bug 995430 - send header when user is signed into a children\'s account. r=mcmanus 2014-05-05 14:30:42 -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 1013623 - make nsHttpPipeline.mConnection a smart pointer r=hurley 2014-05-21 10:01:56 -04:00
nsHttpPipeline.h bug 1013623 - make nsHttpPipeline.mConnection a smart pointer r=hurley 2014-05-21 10:01:56 -04:00
nsHttpRequestHead.cpp bug 378637 part 9 - https proxy info added to connection info and reqeuest head r=hurley 2014-04-16 09:23:20 -04:00
nsHttpRequestHead.h bug 378637 part 9 - https proxy info added to connection info and reqeuest head r=hurley 2014-04-16 09:23:20 -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 378637 part 10 - implement nsAHttpTransaction::ConnectionInfo r=hurley 2014-04-20 12:01:35 -04:00
nsHttpTransaction.h bug 378637 part 13 - https proxying changes to casting and trans lifecycle r=hurley 2014-05-16 11:46:12 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthManager.idl
nsIHttpAuthenticableChannel.idl Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04:00
nsIHttpAuthenticator.idl
nsIHttpChannel.idl bug 1003566 - part 1 - allowSTS attribute to nsIHttpChannel r=honzab 2014-06-04 09:57:15 -07:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 974018: Implement nsIRedirectHistory (r=mayhemer) 2014-05-22 12:58:23 -07:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl

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>