Client.h
Go to the documentation of this file.
summarizes adaptation service answer for the noteAdaptationAnswer() API
Definition: Answer.h:23
Definition: Initiator.h:29
Definition: BodyPipe.h:43
Definition: BodyPipe.h:23
Definition: Client.h:35
void noteAdaptationAnswer(const Adaptation::Answer &answer) override
Definition: Client.cc:697
void endAdaptedBodyConsumption()
called when the entire adapted response body is consumed
Definition: Client.cc:830
void noteAdaptationAclCheckDone(Adaptation::ServiceGroupPointer group) override
Definition: Client.cc:957
void adaptVirginReplyBody(const char *buf, ssize_t len)
Definition: Client.cc:629
void noteMoreBodySpaceAvailable(BodyPipe::Pointer) override
Definition: Client.cc:671
size_t replyBodySpace(const MemBuf &readBuf, const size_t minSpace) const
Definition: Client.cc:1098
void noteMoreBodyDataAvailable(BodyPipe::Pointer) override
Definition: Client.cc:270
void resumeBodyStorage()
called by StoreEntry when it has more buffer space available
Definition: Client.cc:752
virtual HttpRequestPointer originalRequest()
a hack to reach HttpStateData::orignal_request
Definition: Client.cc:570
void handleMoreAdaptedBodyAvailable()
Definition: Client.cc:768
virtual bool getMoreRequestBody(MemBuf &buf)
either fill buf with available [encoded] request body bytes or return false
Definition: Client.cc:438
void startAdaptation(const Adaptation::ServiceGroupPointer &group, HttpRequest *cause)
Initiate an asynchronous adaptation transaction which will call us back.
Definition: Client.cc:578
virtual void abortAll(const char *reason)=0
abnormal transaction termination; reason is for debugging only
bool abortOnBadEntry(const char *abortReason)
Entry-dependent callbacks use this check to quit if the entry went bad.
Definition: Client.cc:258
virtual void handleRequestBodyProducerAborted()=0
Definition: Client.cc:351
void handleAdaptedBodyProducerAborted()
Definition: Client.cc:845
void handleRequestBodyProductionEnded()
Definition: Client.cc:329
bool blockCaching()
whether to prevent caching of an otherwise cachable response
Definition: Client.cc:552
void handleAdaptedBodyProductionEnded()
Definition: Client.cc:815
void handleAdaptationBlocked(const Adaptation::Answer &answer)
Definition: Client.cc:924
void noteBodyProductionEnded(BodyPipe::Pointer) override
Definition: Client.cc:284
size_t calcBufferSpaceToReserve(const size_t space, const size_t wantSpace) const
determine how much space the buffer needs to reserve
Definition: Client.cc:1063
void addVirginReplyBody(const char *buf, ssize_t len)
Definition: Client.cc:1038
void noteBodyProducerAborted(BodyPipe::Pointer) override
Definition: Client.cc:298
CbcPointer< Adaptation::Initiate > adaptedHeadSource
Definition: Client.h:186
virtual bool doneWithServer() const =0
void adjustBodyBytesRead(const int64_t delta)
initializes bodyBytesRead stats if needed and applies delta
Definition: Client.cc:1014
void handleAdaptationAborted(bool bypassable=false)
Definition: Client.cc:885
void markParsedVirginReplyAsWhole(const char *reasonWeAreSure)
Definition: Client.cc:158
void noteBodyConsumerAborted(BodyPipe::Pointer) override
Definition: Client.cc:685
virtual void noteDelayAwareReadChance()=0
virtual bool mayReadVirginReplyBody() const =0
whether we may receive more virgin response body bytes
virtual void closeServer()=0
void handleMoreRequestBodyAvailable()
Definition: Client.cc:319
virtual void processReplyBody()=0
virtual void sentRequestBody(const CommIoCbParams &io)=0
Definition: Client.cc:364
virtual const Comm::ConnectionPointer & dataConnection() const =0
virtual void haveParsedReplyHeaders()
called when we have final (possibly adapted) reply headers; kids extend
Definition: Client.cc:537
Definition: CommCalls.h:114
Definition: FwdState.h:53
Definition: HttpReply.h:25
Definition: HttpRequest.h:49
Definition: MemBuf.h:24
Definition: Store.h:42