gecko-dev/netwerk/protocol/http
Dragana Damjanovic 1de3e688ca Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi
--HG--
rename : toolkit/components/prompts/test/test_bug625187.html => toolkit/components/prompts/test/test_subresources_prompts.html
2016-06-06 01:06:00 +02:00
..
AlternateServices.cpp Bug 865314 - allow 6 parallel connects to new https origin r=hurley 2016-03-31 16:51:03 -04:00
AlternateServices.h Bug 1274376 - more mozilla::net namespaces r=dragana 2016-05-18 22:02:57 -04:00
ASpdySession.cpp
ASpdySession.h Bug 1248203 - streamline h2 stream flow control buffer r=hurley 2016-02-13 12:10:02 -05:00
CacheControlParser.cpp Bug 428916 - support Cache-control directives in HTTP requests, r=mcmanus+michal+froydnj 2016-05-20 08:33:00 +02:00
CacheControlParser.h Bug 428916 - support Cache-control directives in HTTP requests, r=mcmanus+michal+froydnj 2016-05-20 08:33:00 +02:00
ConnectionDiagnostics.cpp Bug 865314 - allow 6 parallel connects to new https origin r=hurley 2016-03-31 16:51:03 -04:00
http2_huffman_table.txt
Http2Compression.cpp Bug 1255239 - Reduce size of HuffmanIncomingTables. r=hurley. 2016-03-11 09:57:02 +11:00
Http2Compression.h Bug 1255239 - Reduce size of HuffmanIncomingTables. r=hurley. 2016-03-11 09:57:02 +11:00
Http2HuffmanIncoming.h Bug 1255239 - Reduce size of HuffmanIncomingTables. r=hurley. 2016-03-11 09:57:02 +11:00
Http2HuffmanOutgoing.h
Http2Push.cpp Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Http2Push.h Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh 2016-04-21 16:59:17 +02:00
Http2Session.cpp Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj 2016-05-22 13:31:11 -07:00
Http2Session.h Bug 1274162 - Fix -Wshadow warnings in netwerk/protocol/http/ directory. r=mcmanus 2016-05-10 23:57:24 -07:00
Http2Stream.cpp Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
Http2Stream.h Bug 1274376 - more mozilla::net namespaces r=dragana 2016-05-18 22:02:57 -04:00
HttpBaseChannel.cpp Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
HttpBaseChannel.h Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
HttpChannelChild.cpp Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
HttpChannelChild.h Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
HttpChannelParent.cpp Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
HttpChannelParent.h Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
HttpChannelParentListener.cpp Bug 507571 - Lock nsHttpResponseHead. r=mcmanus 2016-05-24 06:07:00 +02:00
HttpChannelParentListener.h Bug 1260876 - Remove process switch code for signed package code (added by Bug 1186290). r=valentin. 2016-04-12 10:53:40 +08:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h bug 1219466 - convert netwerk to LazyLogModule r=valentin.gosu 2015-11-02 23:35:29 -05:00
InterceptedChannel.cpp Bug 1274162 - Fix -Wshadow warnings in netwerk/protocol/http/ directory. r=mcmanus 2016-05-10 23:57:24 -07:00
InterceptedChannel.h Bug 1214305 - Part 6: Use a non-IPC redirect for synthesized upgraded responses to ensure the response URL is correctly propagated; r=mcmanus 2016-01-04 16:30:02 -05:00
make_incoming_tables.py Bug 1255239 - Reduce size of HuffmanIncomingTables. r=hurley. 2016-03-11 09:57:02 +11:00
make_outgoing_tables.py
moz.build Bug 428916 - support Cache-control directives in HTTP requests, r=mcmanus+michal+froydnj 2016-05-20 08:33:00 +02:00
nsAHttpConnection.h Bug 905460 - Convert http legacy refs to smart pointers r=dragana a=kwierso 2016-03-29 15:35:56 -04:00
nsAHttpTransaction.h Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh 2016-04-21 16:59:17 +02:00
nsCORSListenerProxy.cpp Bug 1214752. Fix CORS preflights to provide a useful nsILoadContext, so they show up in our devtools network monitor properly. r=sicking 2016-05-26 20:36:09 -04:00
nsCORSListenerProxy.h Bug 1243453 P1 Make nsCORSListenerProxy call UpdateChannel() for internal redirects. r=sicking 2016-02-04 07:28:21 -08:00
nsHttp.cpp Bug 1254061 - Rewrite nsHttp::ParseInt64 using strtoll r=mcmanus 2016-03-23 13:42:12 +01:00
nsHttp.h Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
nsHttpActivityDistributor.cpp Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
nsHttpActivityDistributor.h
nsHttpAtomList.h
nsHttpAuthCache.cpp Bug 137852 - Add a new working HTTP authentication identity to the begining of the session cache list. r=honzab 2016-01-21 11:22:00 +01:00
nsHttpAuthCache.h
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp Backed out changeset 1fe1c3b03d08 (bug 890908) on developer request 2016-06-03 05:51:06 +02:00
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 1258033 - Part 3: Set DNT header based on preference and tracking protection. r=mcmanus 2016-06-02 10:23:46 +08:00
nsHttpChannel.h Bug 1258033 - Part 3: Set DNT header based on preference and tracking protection. r=mcmanus 2016-06-02 10:23:46 +08:00
nsHttpChannelAuthProvider.cpp Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi 2016-06-06 01:06:00 +02:00
nsHttpChannelAuthProvider.h Bug 1230462 - Change the authentiation dialog message. r=mayhemer,dolske,margaret,tanvi 2016-06-06 01:06:00 +02:00
nsHttpChunkedDecoder.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Bug 507571 - Lock nsHttpResponseHead. r=mcmanus 2016-05-24 06:07:00 +02:00
nsHttpConnection.h Bug 1239961 - Minimize amount of PR_Poll and PR_Read calls during shutdown. r=mcmanus 2016-01-15 08:21:00 +01:00
nsHttpConnectionInfo.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
nsHttpConnectionInfo.h Bug 1200802 - Accept RFC1929 SOCKS credentials in proxyInfo. r=michal 2015-11-24 22:56:00 +01:00
nsHttpConnectionMgr.cpp Bug 1274162 - Fix -Wshadow warnings in netwerk/protocol/http/ directory. r=mcmanus 2016-05-10 23:57:24 -07:00
nsHttpConnectionMgr.h Bug 865314 - allow 6 parallel connects to new https origin r=hurley 2016-03-31 16:51:03 -04:00
nsHttpDigestAuth.cpp Backed out changeset 1fe1c3b03d08 (bug 890908) on developer request 2016-06-03 05:51:06 +02:00
nsHttpDigestAuth.h
nsHttpHandler.cpp Bug 1258033 - Part 3: Set DNT header based on preference and tracking protection. r=mcmanus 2016-06-02 10:23:46 +08:00
nsHttpHandler.h Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
nsHttpHeaderArray.cpp Bug 1274917 - Add net original headers to cache.r=mayhemer 2016-06-01 06:25:00 +02:00
nsHttpHeaderArray.h Bug 1274917 - Add net original headers to cache.r=mayhemer 2016-06-01 06:25:00 +02:00
nsHttpNTLMAuth.cpp Backed out changeset 1fe1c3b03d08 (bug 890908) on developer request 2016-06-03 05:51:06 +02:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Bug 1274162 - Fix -Wshadow warnings in netwerk/protocol/http/ directory. r=mcmanus 2016-05-10 23:57:24 -07:00
nsHttpPipeline.h Bug 905460 - Convert http legacy refs to smart pointers r=dragana a=kwierso 2016-03-29 15:35:56 -04:00
nsHttpRequestHead.cpp Bug 1274509 - Use ReentrantMonitor for nsHttpRequestHead because VisitHeaders calls Visitor lock. r=mcmanus 2016-05-24 04:17:00 +02:00
nsHttpRequestHead.h Bug 1274509 - Use ReentrantMonitor for nsHttpRequestHead because VisitHeaders calls Visitor lock. r=mcmanus 2016-05-24 04:17:00 +02:00
nsHttpResponseHead.cpp Bug 1274917 - Add net original headers to cache.r=mayhemer 2016-06-01 06:25:00 +02:00
nsHttpResponseHead.h Bug 1274917 - Add net original headers to cache.r=mayhemer 2016-06-01 06:25:00 +02:00
nsHttpTransaction.cpp Bug 1274917 - Add net original headers to cache.r=mayhemer 2016-06-01 06:25:00 +02:00
nsHttpTransaction.h Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
nsICorsPreflightCallback.h
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl Backed out changeset 1fe1c3b03d08 (bug 890908) on developer request 2016-06-03 05:51:06 +02:00
nsIHttpAuthManager.idl
nsIHttpChannel.idl Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
nsIHttpChannelAuthProvider.idl Bug 1064378 - Don't rewrite custom Authorization header set on a channel by cached credential. r=jduell 2016-01-21 09:33:00 -05:00
nsIHttpChannelChild.idl Bug 1229369 - Intercept redirected network fetches that have their request mode set to manual; r=jdm 2016-01-05 21:02:00 -05:00
nsIHttpChannelInternal.idl Bug 1120715 - Part 1: Add Necko APIs to preserve the Request cache mode on the channel; r=mayhemer 2016-03-11 14:40:33 -05:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl Bug 1148544 - Figure out UA override once per LoadGroup and cache it, rather than once per channel. r=nwgh 2016-02-22 15:57:18 -06:00
NullHttpChannel.cpp Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
NullHttpChannel.h Bug 1274376 - more mozilla::net namespaces r=dragana 2016-05-18 22:02:57 -04:00
NullHttpTransaction.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
NullHttpTransaction.h
PackagedAppService.cpp Bug 507571 - Lock nsHttpResponseHead. r=mcmanus 2016-05-24 06:07:00 +02:00
PackagedAppService.h Bug 1260876 - Remove process switch code for signed package code (added by Bug 1186290). r=valentin. 2016-04-12 10:53:40 +08:00
PackagedAppUtils.js
PackagedAppUtils.manifest
PackagedAppVerifier.cpp Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
PackagedAppVerifier.h
PHttpChannel.ipdl Bug 1274556 - Add a channelId attribute to nsIHttpChannel r=hurley 2016-06-01 12:29:21 -07:00
PHttpChannelParams.h Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
PSpdyPush.h
README
SpdyPush31.cpp Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh 2016-04-21 16:59:17 +02:00
SpdyPush31.h Bug 1262326 - Make test_user_agent_overrides.html work in e10s r=nwgh 2016-04-21 16:59:17 +02:00
SpdySession31.cpp Bug 1274162 - Fix -Wshadow warnings in netwerk/protocol/http/ directory. r=mcmanus 2016-05-10 23:57:24 -07:00
SpdySession31.h Bug 1247205 - dont loop on http2 softerror r=dragana 2016-02-13 20:54:24 -05:00
SpdyStream31.cpp Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
SpdyStream31.h Bug 1267474 - only revalidate strongly framed responses 1/3 r=mayhemer 2016-05-04 17:03:59 -04:00
SpdyZlibReporter.cpp
SpdyZlibReporter.h
TimingStruct.h Bug 1253379 - Cache timings not send to HttpChannelChild r=mayhemer 2016-03-04 12:14:00 +01:00
TunnelUtils.cpp Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
TunnelUtils.h Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
UserAgentOverrides.jsm Bug 1148544 - Figure out UA override once per LoadGroup and cache it, rather than once per channel. r=nwgh 2016-02-22 15:57:18 -06:00
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>