proxygen
|
#include <HTTPSettings.h>
Public Member Functions | |
HTTPSettings () | |
HTTPSettings (const std::initializer_list< SettingPair > &initialSettings) | |
void | setSetting (SettingsId id, SettingsValue val) |
void | unsetSetting (SettingsId id) |
const HTTPSetting * | getSetting (SettingsId id) const |
SettingsValue | getSetting (SettingsId id, SettingsValue defaultVal) const |
std::size_t | getNumSettings () const |
const std::vector< HTTPSetting > & | getAllSettings () |
void | clearSettings () |
Private Member Functions | |
std::vector< HTTPSetting >::iterator | getSettingIter (SettingsId id) |
std::vector< HTTPSetting >::const_iterator | getSettingConstIter (SettingsId id) const |
Private Attributes | |
std::vector< HTTPSetting > | settings_ |
Definition at line 35 of file HTTPSettings.h.
|
inline |
Definition at line 38 of file HTTPSettings.h.
References proxygen::ENABLE_PUSH, proxygen::HEADER_TABLE_SIZE, and proxygen::MAX_FRAME_SIZE.
|
inlineexplicit |
Definition at line 43 of file HTTPSettings.h.
References val.
|
inline |
Definition at line 64 of file HTTPSettings.h.
|
inline |
Definition at line 61 of file HTTPSettings.h.
Referenced by proxygen::SPDYCodec::generateSettings(), and proxygen::HTTP2Codec::generateSettings().
|
inline |
Definition at line 58 of file HTTPSettings.h.
Referenced by proxygen::SPDYCodec::generateSettings(), and TEST().
const HTTPSetting * proxygen::HTTPSettings::getSetting | ( | SettingsId | id | ) | const |
Definition at line 33 of file HTTPSettings.cpp.
References getSettingConstIter(), and settings_.
Referenced by proxygen::HTTP2Codec::encodeHeaders(), proxygen::HTTPSession::getCodecSendWindowSize(), proxygen::HTTP2Codec::handleSettings(), proxygen::HTTP2Codec::HTTP2Codec(), proxygen::HTTP2Codec::maxRecvFrameSize(), proxygen::HTTP2Codec::maxSendFrameSize(), proxygen::SPDYCodec::onSettings(), proxygen::SPDYCodec::onSynStream(), proxygen::HTTP2Codec::parseFrame(), proxygen::HTTP2Codec::parseHeadersCheckConcurrentStreams(), proxygen::HTTP2Codec::parsePushPromise(), proxygen::HTTP2Codec::peerHasWebsockets(), proxygen::HTTP2Codec::supportsExTransactions(), proxygen::HTTP2Codec::supportsPushTransactions(), TEST(), and TEST_F().
SettingsValue proxygen::HTTPSettings::getSetting | ( | SettingsId | id, |
SettingsValue | defaultVal | ||
) | const |
Definition at line 42 of file HTTPSettings.cpp.
References getSettingConstIter(), and settings_.
|
private |
|
private |
void proxygen::HTTPSettings::setSetting | ( | SettingsId | id, |
SettingsValue | val | ||
) |
Definition at line 16 of file HTTPSettings.cpp.
References getSettingIter(), settings_, and val.
Referenced by proxygen::HTTPSessionBase::enableExHeadersSettings(), proxygen::HTTP2Codec::handleSettings(), proxygen::HTTPSession::onNativeProtocolUpgradeImpl(), proxygen::SPDYCodec::onSettings(), proxygen::HTTPSession::setEgressSettings(), proxygen::HTTPSession::setFlowControl(), proxygen::HTTPSession::setMaxConcurrentIncomingStreams(), proxygen::HTTPSession::setupCodec(), TEST(), and TEST_F().
void proxygen::HTTPSettings::unsetSetting | ( | SettingsId | id | ) |
Definition at line 25 of file HTTPSettings.cpp.
References getSettingIter(), and settings_.
Referenced by TEST().
|
private |
Definition at line 78 of file HTTPSettings.h.
Referenced by getSetting(), getSettingConstIter(), getSettingIter(), setSetting(), and unsetSetting().