/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// This is the minimal nsAHttpTransaction implementation. A NullHttpTransaction // can be used to drive connection level semantics (such as SSL handshakes // tunnels) so that a nsHttpConnection becomes fully established in // anticipation of a real transaction needing to use it soon.
class nsIHttpActivityObserver;
namespace mozilla { namespace net {
class nsAHttpConnection; class nsHttpConnectionInfo; class nsHttpRequestHead;
class NullHttpTransaction : public nsAHttpTransaction { public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_NULLHTTPTRANSACTION_IID)
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSAHTTPTRANSACTION
// Overload of nsAHttpTransaction methods bool IsNullTransaction() final { returntrue; }
NullHttpTransaction* QueryNullTransaction() final { returnthis; } bool ResponseTimeoutEnabled() const final { returntrue; }
PRIntervalTime ResponseTimeout() final { return PR_SecondsToInterval(15); }
// We have to override this function because |mTransaction| in // nsHalfOpenSocket could be either nsHttpTransaction or NullHttpTransaction. // NullHttpTransaction will be activated on the connection immediately after // creation and be never put in a pending queue, so it's OK to just return 0.
uint64_t BrowserId() override { return 0; }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.