gecko-dev/netwerk/protocol/http
Valentin Gosu 435b62bfbc Bug 1123920 - domainLookupEnd and requestStart out-of-order when using a persistent connection r=mcmanus 2015-02-25 20:23:56 +02: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 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley 2015-02-19 13:50:15 -05:00
AlternateServices.cpp bug 1130874 - update h2 alternate service extension to draft-06 r=hurley 2015-02-06 17:45:05 -05:00
AlternateServices.h bug 1130874 - update h2 alternate service extension to draft-06 r=hurley 2015-02-06 17:45:05 -05:00
ConnectionDiagnostics.cpp bug 1129571 - h2/spdy coalsescing by full DNS rrset r=hurley 2015-01-30 10:55:07 -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 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05:00
Http2Push.h Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus 2015-01-02 09:04:04 -05:00
Http2Session.cpp bug 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley 2015-02-19 13:50:15 -05:00
Http2Session.h bug 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley 2015-02-19 13:50:15 -05:00
Http2Stream.cpp bug 1128038 - h2 DAV methods set end_stream bit twice r=hurley 2015-02-02 13:42:23 -05:00
Http2Stream.h bug 1072478 - h2 push hit not subject to max_concurrent 2/2 r=hurley 2015-01-13 15:26:37 -05:00
HttpBaseChannel.cpp Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
HttpBaseChannel.h Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
HttpChannelChild.cpp Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
HttpChannelChild.h Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
HttpChannelParent.cpp bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05:00
HttpChannelParent.h bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05: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 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 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
InterceptedChannel.h Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug 2015-02-18 20:34:29 -05:00
NullHttpChannel.cpp Bug 1113004 - Add IsPrivateResponse to HttpChannel. r=mayhemer 2015-01-08 22:38:00 +01:00
NullHttpChannel.h Bug 1113683 - Add dummy NullHttpChannel r=mcmanus 2015-01-06 19:26:10 +02:00
NullHttpTransaction.cpp bug 1094522 - claim conns with null transactions instead of starting new ones r=hurley 2015-01-27 21:55:38 -05:00
NullHttpTransaction.h bug 1132212 - nshttptransction.cpp dont play with data race fire r=sworkman 2015-02-12 15:00:18 -05:00
PHttpChannel.ipdl bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05: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 bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05:00
SpdyPush31.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
SpdySession31.cpp bug 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley 2015-02-19 13:50:15 -05:00
SpdySession31.h bug 1133177 - https tunnel of h1 without pconn inside h2 session stall r=hurley 2015-02-19 13:50:15 -05:00
SpdyStream31.cpp bug 1124717 - 1/4 h2/spdy fix spin when queuing post/put request over concurrent limit r=hurley 2015-01-23 11:22:22 -05:00
SpdyStream31.h bug 1072478 - h2 push hit not subject to max_concurrent 2/2 r=hurley 2015-01-13 15:26:37 -05:00
SpdyZlibReporter.cpp
SpdyZlibReporter.h Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus 2015-01-02 09:04:04 -05:00
TimingStruct.h Bug 1064706 - Send timing info to content process r=honzab 2014-10-06 12:31:29 +03:00
TunnelUtils.cpp bug 1094522 - claim conns with null transactions instead of starting new ones r=hurley 2015-01-27 21:55:38 -05:00
TunnelUtils.h bug 1094522 - claim conns with null transactions instead of starting new ones r=hurley 2015-01-27 21:55:38 -05: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
make_outgoing_tables.py
moz.build Bug 1100184 - Use absolute paths in /network local includes. r=gps 2015-01-16 20:41:06 +10:30
nsAHttpConnection.h Bug 1117042 - Mark virtual overridden functions as MOZ_OVERRIDE in netwerk; r=mcmanus 2015-01-02 09:04:04 -05:00
nsAHttpTransaction.h bug 1094522 - claim conns with null transactions instead of starting new ones r=hurley 2015-01-27 21:55:38 -05:00
nsHttp.cpp Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj. 2015-02-02 14:48:58 -08: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
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 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
nsHttpAuthManager.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpChannel.cpp Bug 1123920 - domainLookupEnd and requestStart out-of-order when using a persistent connection r=mcmanus 2015-02-25 20:23:56 +02:00
nsHttpChannel.h Bug 1092857 - Drop conditional request headers when there is no cache entry available. r=michal 2015-02-20 06:31:00 -05:00
nsHttpChannelAuthProvider.cpp
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
nsHttpChunkedDecoder.h
nsHttpConnection.cpp bug 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05: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 bug 1130874 - update h2 alternate service extension to draft-06 r=hurley 2015-02-06 17:45:05 -05:00
nsHttpConnectionMgr.cpp Bug 1133846 - Add missing arguments to logging call in ActivateTimeoutTick. r=mcmanus 2015-02-24 00:57:00 -05:00
nsHttpConnectionMgr.h bug 1129571 - h2/spdy coalsescing by full DNS rrset r=hurley 2015-01-30 10:55:07 -05:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h Bug 1028588 - Fix dangerous public destructors in netwerk/ - r=mcmanus 2014-06-24 12:36:44 -04:00
nsHttpHandler.cpp Bug 237623 - introduce "soft" checks for HTTP framing errors, r=mcmanus 2015-02-25 01:16:00 +01:00
nsHttpHandler.h Bug 237623 - introduce "soft" checks for HTTP framing errors, r=mcmanus 2015-02-25 01:16:00 +01:00
nsHttpHeaderArray.cpp bug 1024730 - nsIHttpPushListener r=hurley 2014-10-21 14:35:41 -04:00
nsHttpHeaderArray.h Bug 1120985 - Allow nsMultiMixedConv to compute its boundary if content-type=application/package r=honzab 2015-02-12 00:11:19 +02:00
nsHttpNTLMAuth.cpp Bug 423758 - Add NTLMv2 to internal NTLM handler. r=keeler 2014-12-22 15:55:00 -05: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 1116867 - make nsIProgressEventSink and nsITransportEventSink safely scriptable r=mayhemer r=bz 2015-01-08 14:48:52 -05: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 1120985 - Allow nsMultiMixedConv to compute its boundary if content-type=application/package r=honzab 2015-02-12 00:11:19 +02:00
nsHttpTransaction.cpp Bug 1123920 - requestStart timestamp is before connectEnd when using persistent connections r=mcmanus 2015-02-25 20:23:35 +02:00
nsHttpTransaction.h Bug 1132572 - Fix data race for nsHttpTransaction's timing info r=mcmanus 2015-02-25 20:23:23 +02:00
nsIHttpActivityObserver.idl
nsIHttpAuthManager.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpChannel.idl Bug 1113004 - Add IsPrivateResponse to HttpChannel. r=mayhemer 2015-01-08 22:38:00 +01:00
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl Bug 436344 - Allow filtering of proxies by channel. r=mcmanus 2015-01-21 21:13:00 +01: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>