gecko/netwerk/protocol/http
Patrick McManus f91dd06576 bug 739617 - cannot upload large files r=honzab
--HG--
extra : rebase_source : 5ea85a021233cf79a539980efc859a2d5372fe53
2012-04-02 20:36:11 -04:00
..
HttpBaseChannel.cpp Bug 598304 - XHR rewrites non-POST methods upon 301/302 redirects. r=bz 2012-02-10 14:12:51 +01:00
HttpBaseChannel.h
HttpChannelChild.cpp Backed out changeset 5aaec7f808b6 2012-03-15 20:55:44 -07:00
HttpChannelChild.h Backed out changeset 5aaec7f808b6 2012-03-15 20:55:44 -07:00
HttpChannelParent.cpp Backed out changeset 5aaec7f808b6 2012-03-15 20:55:44 -07:00
HttpChannelParent.h
HttpChannelParentListener.cpp
HttpChannelParentListener.h
ipdl.mk
Makefile.in Backed out changeset f65247c7647a (bug 729133) 2012-02-26 13:50:34 +13:00
nsAHttpConnection.h bug 603512 - large objects block pipelines r=honzab 2012-03-22 19:39:31 -04:00
nsAHttpTransaction.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
nsHttp.cpp bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
nsHttp.h bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h bug 597684 Implement HTTP Assoc-req and Banned Pipelines on nsHttpConnectionInfo r=honzab 2012-03-22 19:39:31 -04:00
nsHttpAuthCache.cpp
nsHttpAuthCache.h
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp bug 717350 doom cache entry on last-modified mismatch r=honzab 2012-03-22 19:39:31 -04:00
nsHttpChannel.h bug 597684 Implement HTTP Assoc-req and Banned Pipelines on nsHttpConnectionInfo r=honzab 2012-03-22 19:39:31 -04:00
nsHttpChannelAuthProvider.cpp Back out be556c99ef81 and 13c3c54d067b (bug 627616) for orange 2012-02-12 10:53:31 -08:00
nsHttpChannelAuthProvider.h
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp bug 739617 - cannot upload large files r=honzab 2012-04-02 20:36:11 -04:00
nsHttpConnection.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
nsHttpConnectionInfo.cpp bug 599164 pipeline with type and state r=honzab 2012-03-22 19:39:31 -04:00
nsHttpConnectionInfo.h bug 599164 pipeline with type and state r=honzab 2012-03-22 19:39:31 -04:00
nsHttpConnectionMgr.cpp bug 717759 - negative pipeline feedback on img decode problem r=bz r=jdrew r=honzab 2012-03-22 19:39:32 -04:00
nsHttpConnectionMgr.h bug 717759 - negative pipeline feedback on img decode problem r=bz r=jdrew r=honzab 2012-03-22 19:39:32 -04:00
nsHttpDigestAuth.cpp
nsHttpDigestAuth.h
nsHttpHandler.cpp bug 739617 - cannot upload large files r=honzab 2012-04-02 20:36:11 -04:00
nsHttpHandler.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
nsHttpHeaderArray.cpp bug 704227 muddle through on some minor problems with content-length r=jduell 2012-02-09 14:47:30 -05:00
nsHttpHeaderArray.h bug 704227 muddle through on some minor problems with content-length r=jduell 2012-02-09 14:47:30 -05:00
nsHttpNTLMAuth.cpp Bug 452781 - Allow specifying wildcard that matches all simple netbiosnames in network.automatic-ntlm-auth.trusted-uris, r=honzab 2012-02-17 16:24:31 +01:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp bug 739617 - cannot upload large files r=honzab 2012-04-02 20:36:11 -04:00
nsHttpPipeline.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
nsHttpRequestHead.cpp
nsHttpRequestHead.h
nsHttpResponseHead.cpp Bug 714302: add suport for HTTP status code 308 r=mcmanus 2012-03-21 16:13:42 -04:00
nsHttpResponseHead.h
nsHttpTransaction.cpp Bug 739023 - Disabling the Restart-in-progess logic temporarily since suspected of causing crashes, r=honzab 2012-03-30 00:40:42 +02:00
nsHttpTransaction.h bug 671591 - restart partial http transaction (in progress) r=honzab 2012-03-22 19:39:31 -04:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl
PHttpChannel.ipdl
PHttpChannelParams.h
README
SpdySession.cpp bug 603512 - large objects block pipelines r=honzab 2012-03-22 19:39:31 -04:00
SpdySession.h bug 603514 - http stalled read detection r=honzab 2012-03-22 19:39:31 -04:00
SpdyStream.cpp bug 727943 spdy broke caldav (and probly webdav) methods r=honzab 2012-02-19 14:29:09 -05:00
SpdyStream.h bug 708415 spdy make stream frame writes to session atomic r=honzab 2012-01-26 00:15:26 -05:00
TimingStruct.h

                                                        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>