gecko/netwerk/protocol/http
2014-03-04 13:51:37 -05:00
..
ASpdySession.cpp
ASpdySession.h bug 965348 - control SocketTransportService::Poll tick during spdy idle r=hurley 2014-01-30 02:29:20 -05:00
ConnectionDiagnostics.cpp
Http2Compression.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
Http2Compression.h
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h Bug 959799 - Fix autogen include guard error. r=mcmanus 2014-01-15 08:22:30 -05:00
Http2Push.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
Http2Push.h
Http2Session.cpp bug 974932 - spdy large upload chunk sizes, and fewer TLS application data records r=hurley 2014-02-24 16:27:27 -05:00
Http2Session.h bug 974932 - spdy large upload chunk sizes, and fewer TLS application data records r=hurley 2014-02-24 16:27:27 -05:00
Http2Stream.cpp bug 974932 - spdy large upload chunk sizes, and fewer TLS application data records r=hurley 2014-02-24 16:27:27 -05:00
Http2Stream.h
HttpBaseChannel.cpp Bug 970246 - Create an http-on-response-set-cookie notification to tell when cookies are created via SET-COOKIE response header. r=honzab 2014-02-27 00:14:42 +05:30
HttpBaseChannel.h
HttpChannelChild.cpp Bug 949667 - crash in mozilla::net::HttpChannelParent::OnStartRequest, fail redirect to unsupported protocol on child process, r=jduell 2014-01-14 15:59:00 +01:00
HttpChannelChild.h Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 2. r=bent 2014-01-17 13:49:39 -06:00
HttpChannelParent.cpp Bug 969365 - Do ShouldCheckAppCache with AppID and InBrowser in HttpChannelParent, r=jduell 2014-02-07 22:15:25 +01:00
HttpChannelParent.h Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 2. r=bent 2014-01-17 13:49:39 -06:00
HttpChannelParentListener.cpp Bug 949667 - crash in mozilla::net::HttpChannelParent::OnStartRequest, fail redirect to unsupported protocol on child process, r=jduell 2014-01-14 15:59:00 +01:00
HttpChannelParentListener.h
HttpInfo.cpp
HttpInfo.h
HttpLog.h Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
huff_incoming.txt
huff_outgoing.txt
make_incoming_tables.py
make_outgoing_tables.py Bug 959799 - Fix autogen include guard error. r=mcmanus 2014-01-15 08:22:30 -05:00
moz.build bug 975750 - remove httpdatausage r=jduell 2014-02-25 20:39:08 -05:00
nsAHttpConnection.h
nsAHttpTransaction.h bug 970279 - tie null transactions to cancel and timeout events r=hurley 2014-02-07 17:30:36 -05:00
nsHttp.cpp Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug 2014-02-27 10:04:09 -08:00
nsHttp.h Bug 959333 - HTTP/2 should say so in the status line. r=mcmanus 2014-01-29 13:42:19 -08:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h
nsHttpAuthCache.cpp
nsHttpAuthCache.h
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Bug 977736 - Rewind stream early in DoAuthRetry. r=honzab 2014-03-04 13:51:37 -05:00
nsHttpChannel.h Bug 976912 - Move Telemetry.h include from nsHttpChannel.h to nsHttpChannel.cpp. rs=mcmanus 2014-02-27 10:29:19 +11:00
nsHttpChannelAuthProvider.cpp Bug 676358 - HTTP auth realm parameter parsed as quoted-string doesn't get unescaped r=jduell 2014-01-24 15:07:37 -08:00
nsHttpChannelAuthProvider.h
nsHttpChunkedDecoder.cpp Bug 959100 - Make ParseChunkRemaining detect chunk size overflow. r=jduell 2014-01-17 17:07:29 +01:00
nsHttpChunkedDecoder.h
nsHttpConnection.cpp bug 975750 - remove httpdatausage r=jduell 2014-02-25 20:39:08 -05:00
nsHttpConnection.h bug 975750 - remove httpdatausage r=jduell 2014-02-25 20:39:08 -05:00
nsHttpConnectionInfo.cpp bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpConnectionInfo.h
nsHttpConnectionMgr.cpp Bug 881413 - Avoid a race condition in HTTP shutdown by explicitly cancelling nsHttpConnectionMgr::mTimer when we shut down the socket thread, r=mcmanus 2014-02-28 16:40:38 -08:00
nsHttpConnectionMgr.h bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpDigestAuth.cpp Bug 926042 - Convert path length to unsigned ints to avoid overflowing and crashing. r=jduell 2014-01-23 09:38:29 -05:00
nsHttpDigestAuth.h
nsHttpHandler.cpp bug 975750 - remove httpdatausage r=jduell 2014-02-25 20:39:08 -05:00
nsHttpHandler.h bug 975750 - remove httpdatausage r=jduell 2014-02-25 20:39:08 -05:00
nsHttpHeaderArray.cpp
nsHttpHeaderArray.h
nsHttpNTLMAuth.cpp
nsHttpNTLMAuth.h
nsHttpPipeline.cpp bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpPipeline.h bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp Bug 959333 - HTTP/2 should say so in the status line. r=mcmanus 2014-01-29 13:42:19 -08:00
nsHttpResponseHead.h
nsHttpTransaction.cpp bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsHttpTransaction.h bug 973207 - revert 905460 for nightly crashes r=backout 2014-02-17 13:53:25 -05:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
NullHttpTransaction.cpp
NullHttpTransaction.h bug 970279 - tie null transactions to cancel and timeout events r=hurley 2014-02-07 17:30:36 -05:00
PHttpChannel.ipdl
PHttpChannelParams.h
PSpdyPush.h
README
SpdyPush3.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
SpdyPush3.h
SpdyPush31.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
SpdyPush31.h
SpdySession3.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
SpdySession3.h bug 965348 - control SocketTransportService::Poll tick during spdy idle r=hurley 2014-01-30 02:29:20 -05:00
SpdySession31.cpp bug 974932 - spdy large upload chunk sizes, and fewer TLS application data records r=hurley 2014-02-24 16:27:27 -05:00
SpdySession31.h bug 974932 - spdy large upload chunk sizes, and fewer TLS application data records r=hurley 2014-02-24 16:27:27 -05:00
SpdyStream3.cpp Bug 965031 - Improve usage of levels of nsHttp log module, r=mcmanus 2014-02-07 22:15:24 +01:00
SpdyStream3.h
SpdyStream31.cpp bug 974932 - spdy large upload chunk sizes, and fewer TLS application data records r=hurley 2014-02-24 16:27:27 -05:00
SpdyStream31.h
TimingStruct.h
UserAgentOverrides.jsm Bug 963592 - Perform replacements for updated UA overrides. r=fabrice 2014-01-28 09:04:39 -05:00
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>