gecko-dev/netwerk/protocol/http
2016-01-21 12:40:15 -05:00
..
AlternateServices.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
AlternateServices.h
ASpdySession.cpp
ASpdySession.h
ConnectionDiagnostics.cpp Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus 2015-11-06 12:00:37 -05:00
http2_huffman_table.txt
Http2Compression.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
Http2Compression.h Bug 1201997 - Part 4 - Change size and offset variables to size_t.r=froydn 2015-11-15 14:48:08 +01:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp Bug 1228822 - Ensure we send out the window update when matching a pushed stream with a pull stream. r=mcmanus 2015-12-09 10:11:04 -08:00
Http2Push.h Bug 1228822 - Ensure we send out the window update when matching a pushed stream with a pull stream. r=mcmanus 2015-12-09 10:11:04 -08:00
Http2Session.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
Http2Session.h Bug 1236170 - Make Http2Session::UncompressAndDiscard push-aware. r=mcmanus 2016-01-04 12:17:39 -08:00
Http2Stream.cpp Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus 2015-11-22 21:58:33 -08:00
Http2Stream.h Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
HttpBaseChannel.cpp Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell 2016-01-19 15:28:00 +01:00
HttpBaseChannel.h Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell 2016-01-19 15:28:00 +01:00
HttpChannelChild.cpp Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell 2016-01-19 15:28:00 +01:00
HttpChannelChild.h Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
HttpChannelParent.cpp Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell 2016-01-19 15:28:00 +01:00
HttpChannelParent.h Bug 1087320 - On charset reload set LOAD_FROM_CACHE only on the default channel, r=bz r=jduell 2016-01-19 15:28:00 +01:00
HttpChannelParentListener.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
HttpChannelParentListener.h Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05: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 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05: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
make_outgoing_tables.py
moz.build Bug 1178518 - Packaged App Utils. r=valentin 2015-09-18 11:50:37 +08:00
nsAHttpConnection.h
nsAHttpTransaction.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsCORSListenerProxy.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
nsCORSListenerProxy.h Bug 1226909 part 3: Move logic of when to initiate CORS preflight into channels. Allow CORS preflight to happen when doing a same-origin to cross-origin redirect. r=ckerschb 2015-12-06 18:33:14 -05:00
nsHttp.cpp Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05: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
nsHttpActivityDistributor.h
nsHttpAtomList.h
nsHttpAuthCache.cpp Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
nsHttpAuthCache.h Bug 1213577 - Use OriginAttributes in nsHttpAuthManager, r=mcmanus 2015-10-29 10:43:00 +01:00
nsHttpAuthManager.cpp Bug 1213577 - Use OriginAttributes in nsHttpAuthManager, r=mcmanus 2015-10-29 10:43:00 +01:00
nsHttpAuthManager.h
nsHttpBasicAuth.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
nsHttpBasicAuth.h
nsHttpChannel.cpp 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
nsHttpChannel.h 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
nsHttpChannelAuthProvider.cpp Bug 1241565 - nsIHttpChannelInternal should be a builtinclass, r=honzab.moz 2016-01-22 11:55:54 +00:00
nsHttpChannelAuthProvider.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 1239961 - Minimize amount of PR_Poll and PR_Read calls during shutdown. r=mcmanus 2016-01-15 08:21:00 +01: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 1239961 - Minimize amount of PR_Poll and PR_Read calls during shutdown. r=mcmanus 2016-01-15 08:21:00 +01:00
nsHttpConnectionMgr.h Bug 1230743 - telemtry for nsConnectionEntry hit rate r=hurley 2015-12-05 07:43:01 -05:00
nsHttpDigestAuth.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
nsHttpDigestAuth.h
nsHttpHandler.cpp Bug 1233774 - fix Leak EventTokenBucket on shutdown r=dragana 2016-01-21 12:40:15 -05:00
nsHttpHandler.h Bug 1233774 - fix Leak EventTokenBucket on shutdown r=dragana 2016-01-21 12:40:15 -05:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h
nsHttpNTLMAuth.cpp
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Bug 1219910 - make gSocketThread a relaxed atomic variable; r=mcmanus 2015-11-06 12:00:37 -05:00
nsHttpPipeline.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp Bug 1121447 - trust cache less for error codes r=mayhemer 2015-12-22 16:06:07 -05:00
nsHttpResponseHead.h
nsHttpTransaction.cpp Bug 366023 - Allow h/1.0 chunked encodings r=bagder 2016-01-19 14:22:50 -05:00
nsHttpTransaction.h bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley 2015-10-16 11:36:59 -04:00
nsICorsPreflightCallback.h
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl Bug 1147749 - View source should go through service worker interception, r=bz, r=jduell 2015-10-05 14:46:24 +01: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 1241565 - nsIHttpChannelInternal should be a builtinclass, r=honzab.moz 2016-01-22 11:55:54 +00:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpChannel.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
NullHttpChannel.h
NullHttpTransaction.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
NullHttpTransaction.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
PackagedAppService.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
PackagedAppService.h Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
PackagedAppUtils.js Bug 1217694 - Signed package should come from the moz-package-origin specified in its manifest. r=valentin 2015-10-28 19:16:08 +08:00
PackagedAppUtils.manifest Bug 1178518 - Packaged App Utils. r=valentin 2015-09-18 11:50:37 +08:00
PackagedAppVerifier.cpp Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu 2016-01-08 20:20:50 -05:00
PackagedAppVerifier.h Bug 1216469 - Bypass verification for signed packages from trust origins. r=valentin 2015-10-22 17:09:44 +08:00
PHttpChannel.ipdl Bug 1219469 - Part 1: Revert the error reporting added in bug 1233845; r=jdm 2016-01-04 09:39:10 -05:00
PHttpChannelParams.h
PSpdyPush.h
README
SpdyPush31.cpp Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
SpdyPush31.h Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
SpdySession31.cpp Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
SpdySession31.h Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
SpdyStream31.cpp Bug 1235298 - Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in netwerk/. r=mcmanus 2015-11-22 21:58:33 -08:00
SpdyStream31.h Bug 1223808 - part 3 - replace nsAutoArrayPtr<T> with UniquePtr<T[]> in netwerk/; r=mcmanus 2015-11-08 21:28:05 -05:00
SpdyZlibReporter.cpp
SpdyZlibReporter.h
TimingStruct.h Bug 1222352 - Resource Timing - nextHopProtocol does not work in e10s r=nwgh 2015-11-24 13:42:47 +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
UserAgentUpdates.jsm Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong 2015-09-14 11:04:19 -07:00

                                                        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>