gecko-dev/netwerk/protocol/http
Arnaud Bienner 2755fa9a57 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj
--HG--
extra : rebase_source : 81df1495200d3734ea1c4c13818ae764a445f4b3
2015-08-14 00:49:15 +02:00
..
ASpdySession.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
ASpdySession.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
AlternateServices.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
AlternateServices.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
ConnectionDiagnostics.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
Http2Compression.cpp Bug 1188421 - Properly null memory reporter's compressor reference. r=hurley 2015-07-30 12:31:43 -07:00
Http2Compression.h Bug 986302 - Add memory reporting for HPACK tables r=hurley r=njn 2015-07-17 14:38:10 -07:00
Http2HuffmanIncoming.h Bug 1026609 - HTTP/2 draft 13 part 1 - client implementation. r=mcmanus 2014-06-25 17:33:15 -07:00
Http2HuffmanOutgoing.h Bug 1026609 - HTTP/2 draft 13 part 1 - client implementation. r=mcmanus 2014-06-25 17:33:15 -07:00
Http2Push.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
Http2Push.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
Http2Session.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
Http2Session.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
Http2Stream.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
Http2Stream.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
HttpBaseChannel.cpp Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer 2015-08-17 16:42:46 -04:00
HttpBaseChannel.h Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer 2015-08-17 16:42:46 -04:00
HttpChannelChild.cpp Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer 2015-08-17 16:42:46 -04:00
HttpChannelChild.h Bug 1143922 - Add AsyncOpen2 to nsIChannel and perform security checks when opening a channel - channel changes (r=mcmanus,sicking) 2015-05-15 13:21:20 -07:00
HttpChannelParent.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
HttpChannelParent.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
HttpChannelParentListener.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
HttpChannelParentListener.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
HttpInfo.cpp
HttpInfo.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
HttpLog.h Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj 2015-06-03 15:25:57 -07:00
InterceptedChannel.cpp Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm 2015-07-14 13:11:26 -07:00
InterceptedChannel.h Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
NullHttpChannel.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
NullHttpChannel.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
NullHttpTransaction.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
NullHttpTransaction.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PHttpChannel.ipdl Bug 1163900 - crash in mozilla::net::nsHttpChannelCacheKey::GetData(unsigned int*, nsACString_internal&), r=jduell 2015-05-14 19:05:34 +02:00
PHttpChannelParams.h Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
PSpdyPush.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PackagedAppService.cpp Bug 1172701 - Make GetSubresourceURI normalize the path for packaged resources r=mcmanus 2015-08-12 00:43:48 +02:00
PackagedAppService.h Bug 1187159 - Pass principal and flags from the requesting channel to the packaged app channel r=honzab 2015-08-10 11:21:57 +02:00
README
SpdyPush31.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
SpdyPush31.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
SpdySession31.cpp bug 1189645 - remove spdy telem r=hurley 2015-07-31 04:07:07 -04:00
SpdySession31.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
SpdyStream31.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
SpdyStream31.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
SpdyZlibReporter.cpp Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn 2015-03-31 12:32:49 +09:00
SpdyZlibReporter.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
TimingStruct.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
TunnelUtils.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
TunnelUtils.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
UserAgentOverrides.jsm Bug 1156065 - Send cloneable messages from SiteSpecificUserAgent.js to fix UA overrides r=billm 2015-05-30 09:07:59 +02:00
UserAgentUpdates.jsm Bug 1178760: Add ability to read ua-update.json from APK for Fennec. r=jchen 2015-07-15 12:17:29 -07:00
http2_huffman_table.txt Bug 1026609 - HTTP/2 draft 13 part 1 - client implementation. r=mcmanus 2014-06-25 17:33:15 -07:00
make_incoming_tables.py
make_outgoing_tables.py
moz.build Bug 1036275 - Add Packaged App Service r=honzab 2015-06-03 01:46:15 +03:00
nsAHttpConnection.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsAHttpTransaction.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsHttp.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttp.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpActivityDistributor.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpActivityDistributor.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpAtomList.h bug 1189692 - add telem for quic advertisements r=hurley 2015-07-31 05:43:24 -04:00
nsHttpAuthCache.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpAuthCache.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpAuthManager.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpAuthManager.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpBasicAuth.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpBasicAuth.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpChannel.cpp Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer 2015-08-17 16:42:46 -04:00
nsHttpChannel.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsHttpChannelAuthProvider.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpChannelAuthProvider.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpChunkedDecoder.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpChunkedDecoder.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpConnection.cpp Bug 1182516 - Add Chaos Mode environment variable MOZ_CHAOSMODE. r=roc 2015-07-14 17:29:23 -04:00
nsHttpConnection.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpConnectionInfo.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpConnectionInfo.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpConnectionMgr.cpp bug 1189645 - remove spdy telem r=hurley 2015-07-31 04:07:07 -04:00
nsHttpConnectionMgr.h bug 1189645 - remove spdy telem r=hurley 2015-07-31 04:07:07 -04:00
nsHttpDigestAuth.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpDigestAuth.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpHandler.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsHttpHandler.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsHttpHeaderArray.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpHeaderArray.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpNTLMAuth.cpp Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj 2015-08-14 00:49:15 +02:00
nsHttpNTLMAuth.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpPipeline.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpPipeline.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpRequestHead.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpRequestHead.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpResponseHead.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpResponseHead.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpTransaction.cpp Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsHttpTransaction.h Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsIHttpActivityObserver.idl
nsIHttpAuthManager.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpChannel.idl Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL 2015-07-31 13:50:08 -07:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl Bug 1157283 - Recreate IPC redirected HTTP channels as necessary after intercepting the request in the child. r=mayhemer 2015-05-28 10:47:35 -04:00
nsIHttpChannelInternal.idl Bug 1175803 - Store redirect chain within loadInfo - part 2 (r=sicking,mayhemer) 2015-07-19 19:43:09 -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>