11#ifndef SQUID_SRC_ADAPTATION_ECAP_XACTIONREP_H
12#define SQUID_SRC_ADAPTATION_ECAP_XACTIONREP_H
20#if HAVE_LIBECAP_ADAPTER_XACTION_H
21#include <libecap/adapter/xaction.h>
23#if HAVE_LIBECAP_HOST_XACTION_H
24#include <libecap/host/xaction.h>
48 const libecap::Area
option(
const libecap::Name &name)
const override;
49 void visitEachOption(libecap::NamedValueVisitor &visitor)
const override;
50 libecap::Message &
virgin()
override;
51 const libecap::Message &
cause()
override;
52 libecap::Message &
adapted()
override;
54 void useAdapted(
const libecap::shared_ptr<libecap::Message> &msg)
override;
63 libecap::Area
vbContent(libecap::size_type offset, libecap::size_type
size)
override;
81 void start()
override;
84 const char *
status()
const override;
91 void sinkVb(
const char *reason);
106 const libecap::Area
metaValue(
const libecap::Name &name)
const;
void preserveVb(const char *reason)
const char * status() const override
internal cleanup; do not call directly
bool doneAll() const override
whether positive goal has been reached
void vbMakeMore() override
OperationState proxyingAb
void noteMoreBodySpaceAvailable(RefCount< BodyPipe > bp) override
Adaptation::ServicePointer theService
xaction's adaptation service
void noteMoreBodyDataAvailable(RefCount< BodyPipe > bp) override
libecap::shared_ptr< libecap::Message > MessagePtr
void visitEachMetaHeader(libecap::NamedValueVisitor &visitor) const
Return the adaptation meta headers and their values.
const libecap::Area clientIpValue() const
void useVirgin() override
void noteInitiatorAborted() override
void forgetVb(const char *reason)
void start() override
called by AsyncStart; do not call directly
const libecap::Area metaValue(const libecap::Name &name) const
Return the adaptation meta header value for the given header "name".
const libecap::Area usernameValue() const
void adaptationDelayed(const libecap::Delay &) override
void noteAbContentAvailable() override
void adaptationAborted() override
void scheduleStop(const char *reason)
void vbDiscard() override
const libecap::Area option(const libecap::Name &name) const override
libecap::Message & adapted() override
void noteAbContentDone(bool atEnd) override
void updateHistory(Http::Message *adapted)
void blockVirgin() override
void visitEachOption(libecap::NamedValueVisitor &visitor) const override
bool abProductionFinished
void vbStopMaking() override
int adaptHistoryId
adaptation history slot reservation
void updateSources(Http::Message *adapted)
const libecap::Area masterxSharedValue(const libecap::Name &name) const
Adaptation::Message & answer()
void noteBodyProducerAborted(RefCount< BodyPipe > bp) override
void noteBodyProductionEnded(RefCount< BodyPipe > bp) override
bool vbProductionFinished
AccessLogEntry::Pointer al
Master transaction AccessLogEntry.
libecap::Message & virgin() override
const libecap::Message & cause() override
void master(const AdapterXaction &aMaster)
libecap::shared_ptr< libecap::adapter::Xaction > AdapterXaction
libecap::Area vbContent(libecap::size_type offset, libecap::size_type size) override
void sinkVb(const char *reason)
void useAdapted(const libecap::shared_ptr< libecap::Message > &msg) override
void noteBodyConsumerAborted(RefCount< BodyPipe > bp) override
void vbContentShift(libecap::size_type size) override
common parts of HttpRequest and HttpReply