gecko-dev/netwerk/protocol/http
Patrick McManus 4ab4a2e414 bug 1111217 - Http2Session::CloseTransaction can delete this while on stack from OnMsgCancelTransaction r=hurley 2014-12-15 13:00:13 -05: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 1107267 - Advertise h2-16. r=mcmanus 2014-12-04 11:50:38 -08:00
AlternateServices.cpp bug 865314 - backout 61ee2e053920 due to crashes 1089638 r=backout 2014-12-12 11:48:02 -05:00
AlternateServices.h Bug 1109697 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-12-10 17:49:42 -05:00
ConnectionDiagnostics.cpp bug 865314 - backout 61ee2e053920 due to crashes 1089638 r=backout 2014-12-12 11:48:02 -05: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 1054173 - Do not fail connections when receiving request headers. r=mcmanus 2014-08-18 14:59:32 -07: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 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 1003450 - [3/3] Group Dependency Nodes require >= h2-16 r=hurley 2014-12-11 17:00:19 -05:00
Http2Session.h bug 1003450 - [3/3] Group Dependency Nodes require >= h2-16 r=hurley 2014-12-11 17:00:19 -05:00
Http2Stream.cpp bug 1113661 - broken h2 dependency id r=hurley 2014-12-19 13:01:21 -05:00
Http2Stream.h bug 1113661 - broken h2 dependency id r=hurley 2014-12-19 13:01:21 -05:00
HttpBaseChannel.cpp bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
HttpBaseChannel.h bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
HttpChannelChild.cpp Bug 701634 - Support IndexedDB in Workers, r=khuey+baku. 2014-12-16 22:26:15 -08:00
HttpChannelChild.h bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
HttpChannelParent.cpp Bug 701634 - Support IndexedDB in Workers, r=khuey+baku. 2014-12-16 22:26:15 -08:00
HttpChannelParent.h bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
HttpChannelParentListener.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
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 Bug 981150: Use nsTArrayForwardDeclare.h more. r=ehsan 2014-03-15 12:00:17 -07:00
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 1109697 - Fix more bad implicit constructors in netwerk; r=mcmanus 2014-12-10 17:49:42 -05:00
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 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
PHttpChannelParams.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
PSpdyPush.h bug 1097944 - remove spdy/3 2/2 r=hurley 2014-11-17 12:35:06 -05:00
README
SpdyPush31.cpp bug 378637 part 10 - implement nsAHttpTransaction::ConnectionInfo r=hurley 2014-04-20 12:01:35 -04:00
SpdyPush31.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
SpdySession31.cpp bug 1097944 - remove spdy/3 2/2 r=hurley 2014-11-17 12:35:06 -05:00
SpdySession31.h Backed out changeset 0a066b7ffa46 (bug 939318) 2014-09-24 16:17:32 +01:00
SpdyStream31.cpp bug 1107881 - h2/spdy :path when proxying shouldn't be absolute uri r=hurley 2014-12-12 11:19:28 -05:00
SpdyStream31.h bug 1037082 - part 3/3 407 proxy auth for https over https r=hurley 2014-07-07 11:43:11 -04:00
SpdyZlibReporter.cpp Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg. 2014-05-20 23:06:54 -07:00
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 Bug 963592 - Perform replacements for updated UA overrides. r=fabrice 2014-01-28 09:04:39 -05:00
UserAgentUpdates.jsm Bug 942470 - Don't apply user agent update if updates have been disabled. r=fabrice 2013-12-06 10:22:18 -05: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 1097944 - remove spdy/3 2/2 r=hurley 2014-11-17 12:35:06 -05: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 1091263 - HTTP_1_1_REQUIRED support. r=mcmanus 2014-11-06 09:26:00 -05: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 1003450 - [3/3] Group Dependency Nodes require >= h2-16 r=hurley 2014-12-11 17:00:19 -05:00
nsHttpActivityDistributor.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
nsHttpActivityDistributor.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpAtomList.h Bug 1092368 - alt-svc-04. r=hurley 2014-10-31 17:27:14 -04:00
nsHttpAuthCache.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
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 1111875 - remove assertion on http size input error r=keeler 2014-12-16 21:35:57 -05:00
nsHttpChannel.h Bug 952863, Part 3: Remove more dead code, r=briansmith 2014-12-17 12:58:49 -08:00
nsHttpChannelAuthProvider.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
nsHttpChannelAuthProvider.h bug 1037082 - part 2/3 407 proxy auth for http over https r=hurley 2014-06-24 16:52:48 -04:00
nsHttpChunkedDecoder.cpp Bug 959100 - Make ParseChunkRemaining detect chunk size overflow. r=jduell 2014-01-17 17:07:29 +01:00
nsHttpChunkedDecoder.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpConnection.cpp Bug 952863, Part 2: Remove dead code for non-ECDHE TLS False Start, r=keeler 2014-12-10 10:13:18 -08: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 bug 1111217 - Http2Session::CloseTransaction can delete this while on stack from OnMsgCancelTransaction r=hurley 2014-12-15 13:00:13 -05:00
nsHttpConnectionMgr.h bug 865314 - backout 61ee2e053920 due to crashes 1089638 r=backout 2014-12-12 11:48:02 -05:00
nsHttpDigestAuth.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
nsHttpDigestAuth.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpHandler.cpp bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
nsHttpHandler.h bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05: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 Backed out changeset 8fd0df8e208c (bug 423758) for bustage 2014-12-22 09:05:34 +01:00
nsHttpNTLMAuth.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpPipeline.cpp bug 1013623 - make nsHttpPipeline.mConnection a smart pointer r=hurley 2014-05-21 10:01:56 -04:00
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 1107881 - h2/spdy :path when proxying shouldn't be absolute uri r=hurley 2014-12-12 11:19:28 -05:00
nsHttpResponseHead.cpp Bug 1092613 - reason phrases for http 207 and 208. r=hurley 2014-11-01 17:27:53 -04:00
nsHttpResponseHead.h bug 957093 - namespace consistency for netwerk/protocol/http r=sworkman 2014-01-07 17:05:56 -05:00
nsHttpTransaction.cpp bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
nsHttpTransaction.h bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
nsIHttpActivityObserver.idl
nsIHttpAuthManager.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpChannel.idl Bug 704320 - Parse and implement meta tag-based referrer policies for documents and nsHttpChannels. (r=bz,mcmanus) 2014-11-18 08:46:29 -05:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05: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>