gecko/netwerk/protocol/http
2014-11-04 02:58:00 +01:00
..
AlternateServices.cpp Backed out changeset 06acd829f970 (bug 865314) for causing new topcrashes. a=me 2014-10-27 14:26:13 -04:00
AlternateServices.h Bug 1092368 - alt-svc-04. r=hurley 2014-10-31 17:27:14 -04:00
ASpdySession.cpp bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
ASpdySession.h Backed out changeset 0a066b7ffa46 (bug 939318) 2014-09-24 16:17:32 +01:00
ConnectionDiagnostics.cpp Backed out changeset 06acd829f970 (bug 865314) for causing new topcrashes. a=me 2014-10-27 14:26:13 -04:00
http2_huffman_table.txt
Http2Compression.cpp bug 1081341 - h2 1xx responses r=hurley 2014-09-27 09:06:38 -04:00
Http2Compression.h Bug 1054173 - Do not fail connections when receiving request headers. r=mcmanus 2014-08-18 14:59:32 -07:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
Http2Push.h bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
Http2Session.cpp Bug 1055306 - Make h2 push origin check more correct. r=mcmanus 2014-11-03 16:19:00 +01:00
Http2Session.h bug 1073825 - http2session::cleanupstream failure r=hurley 2014-10-13 11:02:08 -04:00
Http2Stream.cpp Bug 1055306 - Make h2 push origin check more correct. r=mcmanus 2014-11-03 16:19:00 +01:00
Http2Stream.h Bug 1055306 - Make h2 push origin check more correct. r=mcmanus 2014-11-03 16:19:00 +01:00
HttpBaseChannel.cpp Bug 1049299 - Correctly calculate 3rd-party cookie status for content-process HTTP channels. r=jduell 2014-10-28 14:23:00 +01:00
HttpBaseChannel.h Bug 1049299 - Correctly calculate 3rd-party cookie status for content-process HTTP channels. r=jduell 2014-10-28 14:23:00 +01:00
HttpChannelChild.cpp Bug 1041419 - Patch 2: Replace PBrowser with PBrowserOrId in PWyciwygChannel. r=honzab 2014-11-04 02:58:00 +01:00
HttpChannelChild.h Bug 1064706 - Send timing info to content process r=honzab 2014-10-06 12:31:29 +03:00
HttpChannelParent.cpp Bug 1079367 - Fix pointer being set to nullptr too early in HttpChannelParent. r=jduell 2014-10-29 08:49:00 -04:00
HttpChannelParent.h Bug 1020172 - Patch 2: Manage TabParent in chrome process - v14. r=khuey 2014-10-29 19:11:00 +01:00
HttpChannelParentListener.cpp
HttpChannelParentListener.h Bug 1048271 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-08-05 09:20:24 -04:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-08 13:17:32 -07:00
InterceptedChannel.cpp Bug 898524: Part 2 - Avoid IPC roundtrips for synthesized responses. r=mayhemer 2014-10-17 09:55:09 -04:00
InterceptedChannel.h Bug 898524: Part 2 - Avoid IPC roundtrips for synthesized responses. r=mayhemer 2014-10-17 09:55:09 -04:00
make_incoming_tables.py
make_outgoing_tables.py
moz.build Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv 2014-10-25 20:25:22 +03:00
nsAHttpConnection.h bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
nsAHttpTransaction.h bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
nsHttp.cpp bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
nsHttp.h bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h Bug 1092368 - alt-svc-04. r=hurley 2014-10-31 17:27:14 -04:00
nsHttpAuthCache.cpp
nsHttpAuthCache.h Bug 1047782 - Fix some bad impliciit constructors in netwerk/; r=mcmanus 2014-08-05 09:20:50 -04:00
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpChannel.h bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpChannelAuthProvider.cpp
nsHttpChannelAuthProvider.h
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Bug 1090866 - wss over https proxy problem. r=hurley 2014-10-31 15:46:43 -04:00
nsHttpConnection.h Bug 898524: Part 2 - Avoid IPC roundtrips for synthesized responses. r=mayhemer 2014-10-17 09:55:09 -04:00
nsHttpConnectionInfo.cpp Backed out changeset d9026e7165e8 (bug 1082039) for webapp 4 test failures 2014-10-23 14:52:32 +02:00
nsHttpConnectionInfo.h Backed out changeset d9026e7165e8 (bug 1082039) for webapp 4 test failures 2014-10-23 14:52:32 +02:00
nsHttpConnectionMgr.cpp Backed out changeset 06acd829f970 (bug 865314) for causing new topcrashes. a=me 2014-10-27 14:26:13 -04:00
nsHttpConnectionMgr.h Backed out changeset 06acd829f970 (bug 865314) for causing new topcrashes. a=me 2014-10-27 14:26:13 -04:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h
nsHttpHandler.cpp bug 1088850 - disable http/1 framing enforcement from bug 237623 r=bagder 2014-10-24 16:19:40 -04:00
nsHttpHandler.h bug 1088850 - disable http/1 framing enforcement from bug 237623 r=bagder 2014-10-24 16:19:40 -04:00
nsHttpHeaderArray.cpp bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpHeaderArray.h bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpNTLMAuth.cpp
nsHttpNTLMAuth.h
nsHttpPipeline.cpp
nsHttpPipeline.h bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
nsHttpRequestHead.cpp bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
nsHttpRequestHead.h bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpResponseHead.cpp Bug 1092613 - reason phrases for http 207 and 208. r=hurley 2014-11-01 17:27:53 -04:00
nsHttpResponseHead.h
nsHttpTransaction.cpp bug 1088850 - disable http/1 framing enforcement from bug 237623 r=bagder 2014-10-24 16:19:40 -04:00
nsHttpTransaction.h bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl Bug 1048579 - Update the nsIChannel UUID. rs=Ms2ger 2014-08-25 09:55:57 -04:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 1049299 - Correctly calculate 3rd-party cookie status for content-process HTTP channels. r=jduell 2014-10-28 14:23:00 +01:00
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpTransaction.cpp bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
NullHttpTransaction.h bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
PHttpChannel.ipdl Bug 1064706 - Send timing info to content process r=honzab 2014-10-06 12:31:29 +03:00
PHttpChannelParams.h
PSpdyPush.h
README
SpdyPush3.cpp
SpdyPush3.h
SpdyPush31.cpp
SpdyPush31.h
SpdySession3.cpp bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
SpdySession3.h Backed out changeset 0a066b7ffa46 (bug 939318) 2014-09-24 16:17:32 +01:00
SpdySession31.cpp bug 1003448 - HTTP/2 Alternate Service and Opportunistic Security [2/2 necko] r=hurley 2014-08-21 10:50:17 -04:00
SpdySession31.h Backed out changeset 0a066b7ffa46 (bug 939318) 2014-09-24 16:17:32 +01:00
SpdyStream3.cpp Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc. 2014-08-06 06:31:21 -07:00
SpdyStream3.h
SpdyStream31.cpp Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc. 2014-08-06 06:31:21 -07:00
SpdyStream31.h
SpdyZlibReporter.cpp
SpdyZlibReporter.h Bug 1075984 - SpdyZlibReporter.h is missing an include guard. r=froydnj 2014-10-01 13:57:18 -07:00
TimingStruct.h Bug 1064706 - Send timing info to content process r=honzab 2014-10-06 12:31:29 +03:00
TunnelUtils.cpp Bug 1090866 - wss over https proxy problem. r=hurley 2014-10-31 15:46:43 -04:00
TunnelUtils.h Bug 898524: Part 2 - Avoid IPC roundtrips for synthesized responses. r=mayhemer 2014-10-17 09:55:09 -04:00
UserAgentOverrides.jsm
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>