gecko-dev/netwerk/protocol/http
Ehsan Akhgari 0053c63b09 Bug 1130101 - Part 1: Store the value of the Service-Worker-Allowed header in the CompareManager object; r=nsm 2015-05-07 21:06:33 -04:00
..
ASpdySession.cpp bug 1003450 - [3/3] Group Dependency Nodes require >= h2-16 r=hurley 2014-12-11 17:00:19 -05:00
ASpdySession.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
AlternateServices.cpp Bug 1154061 - clear cached alt svc mappings on a variety of state changes r=hurley 2015-04-10 16:13:30 -04:00
AlternateServices.h Bug 1154061 - clear cached alt svc mappings on a variety of state changes r=hurley 2015-04-10 16:13:30 -04:00
ConnectionDiagnostics.cpp bug 1153212 - 2/2 Necko explicitly track origin vs routed host and give psm only origin r=dkeeler r=hurley IGNORE IDL 2015-04-09 11:31:59 -04:00
Http2Compression.cpp bug 1105302 - Fix to use indexed encoding for cookies more than 20 bytes r=mcmanus 2014-11-26 23:44:50 +09:00
Http2Compression.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
Http2HuffmanIncoming.h Bug 1026609 - HTTP/2 draft 13 part 1 - client implementation. r=mcmanus 2014-06-25 17:33:15 -07:00
Http2HuffmanOutgoing.h Bug 1026609 - HTTP/2 draft 13 part 1 - client implementation. r=mcmanus 2014-06-25 17:33:15 -07:00
Http2Push.cpp Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
Http2Push.h Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
Http2Session.cpp Bug 1130822 - properly decode arbitrarily aligned data for non-tier1 platforms. r=mcmanus 2015-04-21 11:26:11 -07:00
Http2Session.h Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Http2Stream.cpp bug 1153212 - 2/2 Necko explicitly track origin vs routed host and give psm only origin r=dkeeler r=hurley IGNORE IDL 2015-04-09 11:31:59 -04:00
Http2Stream.h Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
HttpBaseChannel.cpp Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj 2015-05-07 12:52:45 -07:00
HttpBaseChannel.h Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
HttpChannelChild.cpp Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
HttpChannelChild.h Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
HttpChannelParent.cpp Backed out changeset 8b99d282cd87 (bug 1156084) for static bustage CLOSED TREE 2015-04-21 14:23:56 -07:00
HttpChannelParent.h Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
HttpChannelParentListener.cpp Backed out changeset d11387c52d67 (bug 1106396) for causing crashes for NoScript users on a CLOSED TREE 2015-01-22 11:13:40 -08:00
HttpChannelParentListener.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj 2015-05-07 12:52:44 -07:00
InterceptedChannel.cpp Bug 1137287 - Part 1: Shift some code from InterceptedChannelContent to HttpChannelChild. r=mayhemer 2015-04-17 18:59:10 -04:00
InterceptedChannel.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
NullHttpChannel.cpp Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04: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 1158543 - Remove SpdyConnectTransaction::mRequestHead and make the base class mRequestHead protected; r=mcmanus 2015-04-25 18:41:28 -04:00
NullHttpTransaction.h Bug 1158543 - Remove SpdyConnectTransaction::mRequestHead and make the base class mRequestHead protected; r=mcmanus 2015-04-25 18:41:28 -04:00
PHttpChannel.ipdl Bug 1096908 - forward network security messages to the content process; r=hurley 2015-04-20 11:42:09 -07:00
PHttpChannelParams.h Bug 1113004 - Add IsPrivateResponse to HttpChannel. r=mayhemer 2015-01-08 22:38:00 +01:00
PSpdyPush.h bug 1097944 - remove spdy/3 2/2 r=hurley 2014-11-17 12:35:06 -05:00
README
SpdyPush31.cpp Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
SpdyPush31.h Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
SpdySession31.cpp Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
SpdySession31.h Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
SpdyStream31.cpp bug 1153212 - 2/2 Necko explicitly track origin vs routed host and give psm only origin r=dkeeler r=hurley IGNORE IDL 2015-04-09 11:31:59 -04:00
SpdyStream31.h Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -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 1064706 - Send timing info to content process r=honzab 2014-10-06 12:31:29 +03:00
TunnelUtils.cpp Bug 1158543 - Remove SpdyConnectTransaction::mRequestHead and make the base class mRequestHead protected; r=mcmanus 2015-04-25 18:41:28 -04:00
TunnelUtils.h Bug 1158543 - Remove SpdyConnectTransaction::mRequestHead and make the base class mRequestHead protected; r=mcmanus 2015-04-25 18:41:28 -04:00
UserAgentOverrides.jsm Bug 1133282 - Remove nonstandard expression closures from netwerk. r=mcmanus 2015-01-24 23:50:26 -08:00
UserAgentUpdates.jsm Bug 1133282 - Remove nonstandard expression closures from netwerk. r=mcmanus 2015-01-24 23:50:26 -08:00
http2_huffman_table.txt Bug 1026609 - HTTP/2 draft 13 part 1 - client implementation. r=mcmanus 2014-06-25 17:33:15 -07:00
make_incoming_tables.py Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
make_outgoing_tables.py Bug 993037 (part 1) - http/2 draft 11 client implementation. r=mcmanus 2014-04-29 18:45:59 -07:00
moz.build Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium 2015-04-27 19:59:27 -04:00
nsAHttpConnection.h Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
nsAHttpTransaction.h Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
nsHttp.cpp Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj 2015-05-07 12:52:44 -07:00
nsHttp.h bug 1003450 - [3/3] Group Dependency Nodes require >= h2-16 r=hurley 2014-12-11 17:00:19 -05:00
nsHttpActivityDistributor.cpp Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan 2015-03-17 09:29:17 -07:00
nsHttpActivityDistributor.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpAtomList.h Bug 1130101 - Part 1: Store the value of the Service-Worker-Allowed header in the CompareManager object; r=nsm 2015-05-07 21:06:33 -04:00
nsHttpAuthCache.cpp Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo 2015-01-06 21:39:46 -08:00
nsHttpAuthCache.h Bug 1047782 - Fix some bad impliciit constructors in netwerk/; r=mcmanus 2014-08-05 09:20:50 -04:00
nsHttpAuthManager.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpAuthManager.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpBasicAuth.cpp Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
nsHttpBasicAuth.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpChannel.cpp Bug 1162336 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj 2015-05-07 12:52:45 -07:00
nsHttpChannel.h Bug 1156771 - Part 1: Ensure that each channel uses a unique ID to compute its cache entry extension; r=michal 2015-04-27 13:04:07 -04:00
nsHttpChannelAuthProvider.cpp Bug 647010 - Limit when HTTP authentication dialog is shown. Block cross-origin http auth prompts with pref. r=mayhemer, r=tanvi 2015-04-01 06:56:00 -04:00
nsHttpChannelAuthProvider.h Bug 647010 - Limit when HTTP authentication dialog is shown. Block cross-origin http auth prompts with pref. r=mayhemer, r=tanvi 2015-04-01 06:56:00 -04:00
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp Bug 1154061 - clear cached alt svc mappings on a variety of state changes r=hurley 2015-04-10 16:13:30 -04:00
nsHttpConnection.h Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
nsHttpConnectionInfo.cpp bug 1153212 - 2/2 Necko explicitly track origin vs routed host and give psm only origin r=dkeeler r=hurley IGNORE IDL 2015-04-09 11:31:59 -04:00
nsHttpConnectionInfo.h bug 1153212 - 1/2 revert 90d6a38931fa to make room for better fix r=backout 2015-05-07 13:16:26 -04:00
nsHttpConnectionMgr.cpp bug 1153212 - 1/2 revert 90d6a38931fa to make room for better fix r=backout 2015-05-07 13:16:26 -04:00
nsHttpConnectionMgr.h Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
nsHttpDigestAuth.cpp Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan 2015-03-31 10:03:49 -04:00
nsHttpDigestAuth.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
nsHttpHandler.cpp Bug 1162243 - add anonymous speculative connections r=hurley 2015-05-05 21:15:36 -04:00
nsHttpHandler.h Bug 1162243 - add anonymous speculative connections r=hurley 2015-05-05 21:15:36 -04:00
nsHttpHeaderArray.cpp bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpHeaderArray.h Bug 1137287 - Part 2: Send non-200/404 synthesized responses via the parent HTTP implementation for proper processing. r=mayhemer 2015-04-17 18:59:10 -04:00
nsHttpNTLMAuth.cpp Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj 2015-05-07 12:52:44 -07:00
nsHttpNTLMAuth.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpPipeline.cpp bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05:00
nsHttpPipeline.h Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00: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 1107881 - h2/spdy :path when proxying shouldn't be absolute uri r=hurley 2014-12-12 11:19:28 -05:00
nsHttpResponseHead.cpp bug 1130874 - update h2 alternate service extension to draft-06 r=hurley 2015-02-06 17:45:05 -05:00
nsHttpResponseHead.h Bug 1137287 - Part 2: Send non-200/404 synthesized responses via the parent HTTP implementation for proper processing. r=mayhemer 2015-04-17 18:59:10 -04:00
nsHttpTransaction.cpp Bug 1153929 - Add assertions and null checks to fix windows crash in nsHttpTransaction r=mcmanus 2015-05-08 03:54:06 +03:00
nsHttpTransaction.h bug 1157280 - dont getSockName from main thread r=hurley 2015-04-29 18:39:06 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthManager.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpChannel.idl Backed out changeset e713ce8013eb (bug 1127618) for suspicion of causing semi-frequent B2G crashes. 2015-04-09 20:05:49 -04:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 1153936 - nsIHttpChannelInteral attribute to opt out of alt-svc on per channel basis r=hurley 2015-04-13 12:59:34 -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>