*/
#include "squid.h"
-#include "Debug.h"
#include "RequestFlags.h"
-// TODO: move to .cci
-/* RequestFlags */
-bool
-RequestFlags::resetTCP() const
-{
- return resetTCP_;
-}
-
-void
-RequestFlags::setResetTCP()
-{
- debugs(73, 9, HERE);
- resetTCP_ = true;
-}
-
-void
-RequestFlags::clearResetTCP()
-{
- debugs(73, 9, HERE);
- resetTCP_ = false;
-}
-
-void
-RequestFlags::destinationIPLookupCompleted()
-{
- destinationIPLookedUp_ = true;
-}
-
-bool
-RequestFlags::destinationIPLookedUp() const
-{
- return destinationIPLookedUp_;
-}
-
-bool
-RequestFlags::isRanged() const
-{
- return isRanged_;
-}
-
-void
-RequestFlags::setRanged()
-{
- isRanged_ = true;
-}
-
-void
-RequestFlags::clearRanged()
-{
- isRanged_ = false;
-}
RequestFlags
RequestFlags::cloneAdaptationImmune() const
request->clientConnectionManager = conn;
request->flags.accelerated = http->flags.accel;
- request->flags.setSslBumped_=conn->switchedToHttps();
+ request->flags.sslBumped_=conn->switchedToHttps();
request->flags.canRePin = request->flags.sslBumped_ && conn->pinning.pinned;
request->flags.ignore_cc = conn->port->ignore_cc;
// TODO: decouple http->flags.accel from request->flags.sslBumped
class ClientHttpRequest;
class clientStreamNode;
class ChunkedCodingParser;
+namespace AnyP {
+ class PortCfg;
+} // namespace Anyp
/**
* Badly named.
if (auth_challenge) {
#if USE_AUTH
- if (http->request->flags.sslBumped) {
+ if (http->request->flags.sslBumped_) {
/*SSL Bumped request, authentication is not possible*/
status = HTTP_FORBIDDEN;
} else if (!http->flags.accel) {
if (err->page_id == TCP_RESET) {
if (err->request) {
debugs(4, 2, "RSTing this reply");
- err->request->flags.setResetTCP_=true;
+ err->request->flags.resetTCP_=true;
}
}