gecko-dev/netwerk/protocol/http
2016-09-06 10:26:03 +08:00
..
AlternateServices.cpp Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm. 2016-08-12 15:19:29 +10:00
AlternateServices.h Bug 1283319 - Add origin attributes to nsHttpConnectionInfo's hash key. r=mayhemer 2016-08-04 01:17:00 -04:00
ASpdySession.cpp Bug 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07:00
ASpdySession.h Bug 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07: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 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07:00
http2_huffman_table.txt
Http2Compression.cpp Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10: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 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10: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 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Http2Session.h Bug 1291814 - enforce h2 increasing push ids. r=hurley 2016-08-03 14:36:50 -04:00
Http2Stream.cpp Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger 2016-08-23 11:24:54 -04:00
Http2Stream.h Bug 1274376 - more mozilla::net namespaces r=dragana 2016-05-18 22:02:57 -04:00
HttpBaseChannel.cpp Bug 1260931 - Part 4: update OriginAttributes when http redirect. r=smaug 2016-09-06 10:26:03 +08:00
HttpBaseChannel.h Merge m-c to fx-team. a=merge 2016-08-23 10:11:52 -04:00
HttpChannelChild.cpp Bug 1297663 - Backout bug 1264566 a=backout 2016-08-31 15:39:36 +02:00
HttpChannelChild.h Backed out changeset e1f3ed984607 (bug 1261585) for causing bug 1292586 a=backout 2016-08-22 11:29:04 -07:00
HttpChannelParent.cpp Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley. 2016-08-26 16:02:31 +10:00
HttpChannelParent.h Bug 1274886 - Don't send any more IPC messages after calling PHttpChannelParent::SendDeleteSelf() r=jduell 2016-06-14 13:49:52 +01:00
HttpChannelParentListener.cpp Bug 1298737 - Indentation fix in HttpChannelParentListener.cpp, r=smaug 2016-08-29 07:04:22 -07: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 1275744 - Reference MOZ_LOG in netwerk comments. r=erahm 2016-05-25 16:13:54 -07:00
InterceptedChannel.cpp Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm. 2016-09-01 15:01:16 +10:00
InterceptedChannel.h
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 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07: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 Backed out changeset 123049a4ba35 (bug 1264578) for timing out in browser_clientAuth_connection.js. r=backout 2016-08-18 17:28:09 +02:00
nsCORSListenerProxy.cpp Bug 1210985 - More specific error message for "useCredentials" and wildcard allowing origin. r=ckerschb 2016-08-05 11:46:33 +08:00
nsCORSListenerProxy.h
nsHttp.cpp Bug 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07:00
nsHttp.h Bug 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07:00
nsHttpActivityDistributor.cpp Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
nsHttpActivityDistributor.h
nsHttpAtomList.h Bug 471020 - Implement X-Content-Type-Options: nosniff. r=dveditz,bz,mcmanus 2016-07-20 12:22:27 +02:00
nsHttpAuthCache.cpp
nsHttpAuthCache.h
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp Bug 890908 - Move Negotiate auth off main thread. r=mayhemer 2016-07-14 03:32:00 -04:00
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 1299267 - Add additonal telemetry types. r=ckerschb 2016-09-05 20:02:52 +02:00
nsHttpChannel.h Backed out changeset 8dc198cd46ff (bug 1246540) for Mochitest failures 2016-07-27 13:14:07 +08:00
nsHttpChannelAuthProvider.cpp Bug 1277213 - Reset state after cancel. r=mayhemer 2016-07-28 10:09:32 -04:00
nsHttpChannelAuthProvider.h Bug 890908 - Move Negotiate auth off main thread. r=mayhemer 2016-07-14 03:32:00 -04:00
nsHttpChunkedDecoder.cpp Bug 1277019 - Change header and status parsing methods to take nsACString instead of char array. r=mayhemer 2016-05-31 12:42:15 -04:00
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm. 2016-09-01 15:01:16 +10:00
nsHttpConnection.h Backed out changeset 123049a4ba35 (bug 1264578) for timing out in browser_clientAuth_connection.js. r=backout 2016-08-18 17:28:09 +02:00
nsHttpConnectionInfo.cpp Bug 1283319 - Add origin attributes to nsHttpConnectionInfo's hash key. r=mayhemer 2016-08-04 01:17:00 -04:00
nsHttpConnectionInfo.h Bug 1283319 - Add origin attributes to nsHttpConnectionInfo's hash key. r=mayhemer 2016-08-04 01:17:00 -04:00
nsHttpConnectionMgr.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08: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 Bug 1295085 - Replace PR_snprintf and s[n]printf calls with SprintfLiteral in netwerk/. r=jduell 2016-08-15 01:09:06 -07:00
nsHttpDigestAuth.h
nsHttpHandler.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsHttpHandler.h Bug 1283319 - Add origin attributes to nsHttpConnectionInfo's hash key. r=mayhemer 2016-08-04 01:17:00 -04:00
nsHttpHeaderArray.cpp Bug 1277019 - Change header and status parsing methods to take nsACString instead of char array. r=mayhemer 2016-05-31 12:42:15 -04:00
nsHttpHeaderArray.h Bug 1293501 - Add debug annotations to track down the crash of bug 1145613. r=jduell 2016-08-08 10:57:10 +08:00
nsHttpNTLMAuth.cpp Bug 1291700 - Allow negotiate/ntml to work when in the 'Never remember history' mode. r=jduell 2016-08-16 06:24:00 -04:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj. 2016-08-12 17:36:22 +10:00
nsHttpPipeline.h Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj. 2016-08-12 17:36:22 +10:00
nsHttpRequestHead.cpp Bug 1293501 - Add some more crash annotations to dianose bug 1145613. r=mcmanus 2016-08-26 10:08:18 +08:00
nsHttpRequestHead.h Bug 1293501 - Add some more crash annotations to dianose bug 1145613. r=mcmanus 2016-08-26 10:08:18 +08:00
nsHttpResponseHead.cpp Bug 1277019 - Change header and status parsing methods to take nsACString instead of char array. r=mayhemer 2016-05-31 12:42:15 -04:00
nsHttpResponseHead.h Bug 1277019 - Change header and status parsing methods to take nsACString instead of char array. r=mayhemer 2016-05-31 12:42:15 -04:00
nsHttpTransaction.cpp Merge m-c to fx-team. a=merge 2016-08-23 10:11:52 -04:00
nsHttpTransaction.h Backed out changeset 123049a4ba35 (bug 1264578) for timing out in browser_clientAuth_connection.js. r=backout 2016-08-18 17:28:09 +02:00
nsICorsPreflightCallback.h
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl Bug 1293364 - Refactor out duplicate typedefs in xpidl, r=mayhemer 2016-08-10 11:11:42 -04:00
nsIHttpAuthenticator.idl Bug 890908 - Move Negotiate auth off main thread. r=mayhemer 2016-07-14 03:32:00 -04: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
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 1283319 - Tests for connection info's hash key. r=mayhemer 2016-08-17 19:57:00 -04: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
NullHttpTransaction.h
PackagedAppService.cpp Bug 1295053 (part 8) - Don't use NS_METHOD for netwerk/ functions. r=froydnj. 2016-08-16 12:12:30 +10:00
PackagedAppService.h Bug 1295053 (part 8) - Don't use NS_METHOD for netwerk/ functions. r=froydnj. 2016-08-16 12:12:30 +10:00
PackagedAppUtils.js
PackagedAppUtils.manifest
PackagedAppVerifier.cpp Bug 1295103 - Check OriginAttributes::PopulateFromSuffix return value in PackagedAppVerifier. r=mayhemer 2016-08-15 18:19:44 +08:00
PackagedAppVerifier.h Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj. 2016-08-12 17:36:22 +10:00
PHttpChannel.ipdl Backed out changeset e1f3ed984607 (bug 1261585) for causing bug 1292586 a=backout 2016-08-22 11:29:04 -07:00
PHttpChannelParams.h Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
PSpdyPush.h Bug 1248197 - Remove spdy/3.1 support. r=mcmanus 2016-07-15 15:13:49 -07:00
README
TimingStruct.h Bug 1253379 - Cache timings not send to HttpChannelChild r=mayhemer 2016-03-04 12:14:00 +01:00
TunnelUtils.cpp Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj. 2016-08-08 10:54:47 +10:00
TunnelUtils.h
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>