Dactyloidae/netwerk/protocol/http
2026-03-31 11:46:59 +01:00
..
AltDataOutputStreamChild.cpp
AltDataOutputStreamChild.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
AltDataOutputStreamParent.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
AltDataOutputStreamParent.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
AlternateServices.cpp [network] Refactor TransactionObserver::OnDataAvailable() 2023-09-28 11:51:24 +08:00
AlternateServices.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
ASpdySession.cpp Issue #21 - Remove Telemetry plumbing and fix build. 2022-04-28 10:25:48 +08:00
ASpdySession.h Issue #21 - Remove Telemetry plumbing and fix build. 2022-04-28 10:25:48 +08:00
CacheControlParser.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
CacheControlParser.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
ConnectionDiagnostics.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
http2_huffman_table.txt
Http2Compression.cpp import change from tenfourfox: 2021-10-05 10:20:41 +08:00
Http2Compression.h Issue #21 - Remove Telemetry plumbing and fix build. 2022-04-28 10:25:48 +08:00
Http2HuffmanIncoming.h
Http2HuffmanOutgoing.h
Http2Push.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
Http2Push.h Implement a threadsafe & revised version of http2PushedStream. 2019-07-22 19:56:01 +08:00
Http2Session.cpp [network] Keep track of and check HTTP/2 header sizes. 2024-04-19 09:34:14 +08:00
Http2Session.h [network] Keep track of and check HTTP/2 header sizes. 2024-04-19 09:34:14 +08:00
Http2Stream.cpp Issue #2430 - No longer force tcp send buffer size on HTTP/2 uploads > 128KB 2024-01-05 10:11:19 +08:00
Http2Stream.h Implement a threadsafe & revised version of http2PushedStream. 2019-07-22 19:56:01 +08:00
HttpBaseChannel.cpp Enhance PDF handling by introducing DISPOSITION_FORCE_INLINE and updating content disposition logic 2026-03-31 11:46:59 +01:00
HttpBaseChannel.h Issue #1975 - Implement Origin header CSRF mitigation. 2022-07-30 08:43:44 +08:00
HttpChannelChild.cpp Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy) 2024-10-24 07:37:31 +08:00
HttpChannelChild.h Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy) 2024-10-24 07:37:31 +08:00
HttpChannelParent.cpp Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy) 2024-10-24 07:37:31 +08:00
HttpChannelParent.h Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy) 2024-10-24 07:37:31 +08:00
HttpChannelParentListener.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
HttpChannelParentListener.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
HttpInfo.cpp
HttpInfo.h
HttpLog.h Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
InterceptedChannel.cpp Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
InterceptedChannel.h Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
make_incoming_tables.py
make_outgoing_tables.py
moz.build Issue #2542 - Part 7: Move SecFetch.* to /netwerk where it belongs. 2024-07-10 14:49:06 +08:00
nsAHttpConnection.h
nsAHttpTransaction.h
nsCORSListenerProxy.cpp Issue #2703 - Part 4: Fix incorrect clang warning in nsCORSListenerProxy. 2025-03-23 12:27:29 +08:00
nsCORSListenerProxy.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nsHttp.cpp Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
nsHttp.h Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
nsHttpActivityDistributor.cpp
nsHttpActivityDistributor.h
nsHttpAtomList.h Issue #1721 - Implement GlobalPrivacyControl 2023-10-18 10:17:23 +08:00
nsHttpAuthCache.cpp Issue #1787 - Remove nsIAppsService, mozIApplication and mozapp data cleanup. 2024-11-21 21:09:05 +08:00
nsHttpAuthCache.h
nsHttpAuthManager.cpp
nsHttpAuthManager.h
nsHttpBasicAuth.cpp
nsHttpBasicAuth.h
nsHttpChannel.cpp Revert "Issue #2258 - Part 1: Support XCTO:nosniff when navigating." 2025-09-26 23:15:31 +08:00
nsHttpChannel.h Issue #1721 - Implement GlobalPrivacyControl 2023-10-18 10:17:23 +08:00
nsHttpChannelAuthProvider.cpp Issue #21 - Remove Telemetry plumbing and fix build. 2022-04-28 10:25:48 +08:00
nsHttpChannelAuthProvider.h Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
nsHttpChunkedDecoder.cpp
nsHttpChunkedDecoder.h
nsHttpConnection.cpp [network] Verify connection NPN against negotiated NPN. 2025-01-10 22:30:15 +08:00
nsHttpConnection.h Issue #21 - Remove remaining telemetry structs, callers and flags. 2022-04-28 10:33:44 +08:00
nsHttpConnectionInfo.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
nsHttpConnectionInfo.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
nsHttpConnectionMgr.cpp Fix some debug assertions. 2022-10-06 10:26:38 +08:00
nsHttpConnectionMgr.h Issue #21 - Remove remaining telemetry structs, callers and flags. 2022-04-28 10:33:44 +08:00
nsHttpDigestAuth.cpp [network] Make http digest auth cnonce length configurable. 2024-05-22 15:20:46 +08:00
nsHttpDigestAuth.h
nsHttpHandler.cpp Edge theme (WIP) 2026-02-28 16:46:59 +00:00
nsHttpHandler.h UAO: add general.useragent.(change_)app_version 2024-07-09 17:02:32 +08:00
nsHttpHeaderArray.cpp Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
nsHttpHeaderArray.h Issue #1721 - Follow-up: Properly protect GPC header 2023-10-18 09:54:42 +08:00
nsHttpNTLMAuth.cpp Issue #1656 - Remove more vim control lines. 2023-05-05 22:59:16 +08:00
nsHttpNTLMAuth.h
nsHttpPipeline.cpp Add a nullcheck on pipelined HTTP connections' pushback. 2019-02-16 00:20:06 +08:00
nsHttpPipeline.h
nsHttpRequestHead.cpp backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across origins 2019-02-16 00:14:28 +08:00
nsHttpRequestHead.h backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across origins 2019-02-16 00:14:28 +08:00
nsHttpResponseHead.cpp Issue #2852 - Follow-up: Add comment and fix formatting. 2025-09-23 15:19:29 +08:00
nsHttpResponseHead.h backport mozbug 1334776 - CVE-2017-7797 Header name interning leaks across origins 2019-02-16 00:14:28 +08:00
nsHttpTransaction.cpp [network] Don't try to use non-existing connections. 2025-01-18 10:31:13 +08:00
nsHttpTransaction.h Implement a threadsafe & revised version of http2PushedStream. 2019-07-22 19:56:01 +08:00
nsICorsPreflightCallback.h Issue #1656 - Part 1: Nuke most vim config lines in the tree. 2020-09-25 22:04:12 +08:00
nsIHttpActivityObserver.idl
nsIHttpAuthenticableChannel.idl
nsIHttpAuthenticator.idl
nsIHttpAuthManager.idl
nsIHttpChannel.idl
nsIHttpChannelAuthProvider.idl Issue #1656 - Part 4: Tackle *.idl, *.css, *.ipdlh, *.webidl, *.cc 2020-09-25 22:04:18 +08:00
nsIHttpChannelChild.idl
nsIHttpChannelInternal.idl
nsIHttpEventSink.idl
nsIHttpHeaderVisitor.idl
nsIHttpProtocolHandler.idl Revert incorrect UAO optimization that broke SSUAO 2019-02-15 23:57:29 +08:00
nsIWellKnownOpportunisticUtils.idl
NullHttpChannel.cpp moebius#158: The Performance Resource Timing (added support for "workerStart") 2019-02-15 23:53:25 +08:00
NullHttpChannel.h
NullHttpTransaction.cpp Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
NullHttpTransaction.h DevTools - network - implement the secureConnectionStart property for the PerformanceTiming 2019-02-15 23:34:40 +08:00
PAltDataOutputStream.ipdl Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
PHttpChannel.ipdl Issue #2641 - Update Fetch to adhere to the updated spec (pass refpolicy) 2024-10-24 07:37:31 +08:00
PHttpChannelParams.h Issue #1656 - Part 3: Nuke more vim config lines in the tree. 2020-09-25 22:04:17 +08:00
PSpdyPush.h
README
SecFetch.cpp Issue #2542 - Part 9: Remove TODO comment. 2024-07-10 14:49:39 +08:00
SecFetch.h Issue #2542 - Part 7: Move SecFetch.* to /netwerk where it belongs. 2024-07-10 14:49:06 +08:00
TimingStruct.h DevTools - network - implement the secureConnectionStart property for the PerformanceTiming 2019-02-15 23:34:40 +08:00
TunnelUtils.cpp Issue #1991 - backport Mozilla bug 1266667 2022-09-01 10:18:39 +08:00
TunnelUtils.h Return proper error if the nss layer encounters an error on the http 2019-03-23 06:45:32 +08:00
UserAgentOverrides.jsm Issue #1473 - Fix building %OS_SLICE% on non-Windows platforms 2020-04-03 09:26:52 +08:00
UserAgentUpdates.jsm Issue #1053 - Remove no longer used function and modules from UserAgentUpdates.jsm 2020-03-13 10:24:01 +08:00
WellKnownOpportunisticUtils.js
WellKnownOpportunisticUtils.manifest

                                                        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>