gecko-dev/netwerk/protocol/http
Christoph Kerschbaumer 7dd3e47cb3 Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
..
ASpdySession.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
ASpdySession.h bug 1204614 - use h2 per stream flow control to deal with suspended channels r=hurley 2015-09-11 15:53:27 -04: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 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
ConnectionDiagnostics.cpp bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley 2015-10-16 11:36:59 -04:00
Http2Compression.cpp Backed out changeset 9093e927a247 (bug 1201997) 2015-10-30 15:52:18 +01:00
Http2Compression.h Backed out changeset 9093e927a247 (bug 1201997) 2015-10-30 15:52:18 +01:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 Back out changeset ea8093d8be6a (bug 1197313) for Linux xpcshell bustage in test_offlinecache_custom-directory.js 2015-10-31 12:14:38 -07:00
Http2Session.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
Http2Stream.cpp Backed out changeset 9fc04da2a662 (bug 1211694) for perma failures in B2G ICS Emulator opt C1 Tests on a CLOSED TREE 2015-10-20 16:09:13 +02:00
Http2Stream.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
HttpBaseChannel.cpp Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
HttpBaseChannel.h Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
HttpChannelChild.cpp Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
HttpChannelChild.h Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
HttpChannelParent.cpp Bug 1180088 - Use origin-based permission check on parent side for signed packaged web app. r=kanru. 2015-10-22 05:44:00 +02:00
HttpChannelParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
HttpChannelParentListener.cpp Bug 1186290 - Notify TabParent to switch process when loading a signed package. r=honzab, r=kanru. 2015-10-02 05:25:22 -07:00
HttpChannelParentListener.h Bug 1186290 - Notify TabParent to switch process when loading a signed package. r=honzab, r=kanru. 2015-10-02 05:25:22 -07: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 1215140 P10 Avoid AddRef'ing the nsIChannel OMT. r=bz 2015-10-29 19:53:25 -07:00
InterceptedChannel.h Bug 1215140 P10 Avoid AddRef'ing the nsIChannel OMT. r=bz 2015-10-29 19:53:25 -07:00
NullHttpChannel.cpp Bug 1147749 - View source should go through service worker interception, r=bz, r=jduell 2015-10-05 14:46:24 +01: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 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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
PHttpChannel.ipdl Bug 1210413 P1 Propagate new channel load flags from child to parent on redirect. r=jduell a=dveditz 2015-10-07 14:33:31 -07:00
PHttpChannelParams.h Bug 815299 - Part 1: Add an API for setting an empty request header on an HTTP channel; r=dragana 2015-09-09 07:53:09 -04:00
PSpdyPush.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
PackagedAppService.cpp Bug 1216469 - Bypass verification for signed packages from trust origins. r=valentin 2015-10-22 17:09:44 +08:00
PackagedAppService.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 1217694 - Signed package should come from the moz-package-origin specified in its manifest. r=valentin 2015-10-28 19:16:08 +08:00
PackagedAppVerifier.h Bug 1216469 - Bypass verification for signed packages from trust origins. r=valentin 2015-10-22 17:09:44 +08:00
README
SpdyPush31.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 Back out changeset ea8093d8be6a (bug 1197313) for Linux xpcshell bustage in test_offlinecache_custom-directory.js 2015-10-31 12:14:38 -07:00
SpdySession31.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
SpdyStream31.cpp bug 1215724 - enable brotli on spdy r=hurley 2015-10-17 12:09:37 -04:00
SpdyStream31.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TunnelUtils.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong 2015-09-14 11:04:19 -07:00
http2_huffman_table.txt
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 bug 1204614 - use h2 per stream flow control to deal with suspended channels r=hurley 2015-09-11 15:53:27 -04:00
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 1194052 - Update Clone() functionality of LoadInfo (r=sicking) 2015-10-31 15:20:48 -07:00
nsCORSListenerProxy.h Bug 1182571: Make nsXMLHttpRequest use AsyncOpen2. r=ehsan 2015-10-19 11:14:54 -07:00
nsHttp.cpp Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8. 2015-09-15 20:49:53 -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 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
nsHttpChannel.h Bug 1194052 - Append to redirectchain before asyncopen() is called (r=sicking,mayhemer) 2015-10-31 15:22:01 -07:00
nsHttpChannelAuthProvider.cpp Bug 1182571: Fix nsILoadInfo->GetContentPolicyType API to be less ambigious. Audit and fix all users of it. r=ckerschb 2015-10-19 11:14:54 -07: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 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 1083930 - cpu spin during large h2/spdy upload r=hurley 2015-10-19 17:42:18 -04:00
nsHttpConnection.h bug 1083930 - cpu spin during large h2/spdy upload r=hurley 2015-10-19 17:42:18 -04:00
nsHttpConnectionInfo.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHttpConnectionInfo.h bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley 2015-10-16 11:36:59 -04:00
nsHttpConnectionMgr.cpp Backed out changeset 2a233dadfc49 (bug 1219910) for bustage on a CLOSED TREE 2015-10-30 16:09:19 +01:00
nsHttpConnectionMgr.h bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley 2015-10-16 11:36:59 -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 Back out changeset ea8093d8be6a (bug 1197313) for Linux xpcshell bustage in test_offlinecache_custom-directory.js 2015-10-31 12:14:38 -07:00
nsHttpHandler.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHttpHeaderArray.cpp Bug 1200337 - Part 1: Don't expose standard HTTP headers during interception in non-e10s mode, r=mcmanus 2015-09-12 12:46:09 -04:00
nsHttpHeaderArray.h Bug 1200337 - Part 1: Don't expose standard HTTP headers during interception in non-e10s mode, r=mcmanus 2015-09-12 12:46:09 -04:00
nsHttpNTLMAuth.cpp Bug 1199049 - Part 15: Add a missing include 2015-09-12 20:13:23 -04:00
nsHttpNTLMAuth.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpPipeline.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04: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 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsHttpRequestHead.h Bug 815299 - Part 1: Add an API for setting an empty request header on an HTTP channel; r=dragana 2015-09-09 07:53:09 -04: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 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsHttpTransaction.h bug 1215552 - nsHttpConnectionMgr::PostEvent shouldnt manually ref count r=hurley 2015-10-16 11:36:59 -04:00
nsICorsPreflightCallback.h Bug 1199049 - Part 3: Add a CORS preflight result notification API; r=jduell,ckerschb,sicking 2015-09-12 19:20:55 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthManager.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.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
nsIHttpChannelChild.idl Bug 1199049 - Part 7: Remove entries from the CORS preflight cache in the parent process when a CORS check in the child process fails; r=jduell 2015-09-12 19:21:03 -04:00
nsIHttpChannelInternal.idl Bug 1173811 - Part 1: Propagate the response URL to intercepted channels when necessary (non-e10s). r=mayhemer,bkelly 2015-10-22 09:23:39 -04: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>