http.h
Go to the documentation of this file.
98 };
Definition: CachePeer.h:31
Definition: Client.h:35
Definition: CommCalls.h:128
Definition: CommCalls.h:114
Definition: CommCalls.h:134
Definition: FwdState.h:53
Definition: HttpHeader.h:75
Definition: HttpReply.h:25
Definition: RequestMethod.h:27
Definition: HttpRequest.h:49
assists in making and relaying entry caching/sharing decision
Definition: http.h:30
ReuseDecision(const StoreEntry *e, const Http::StatusCode code)
Definition: http.cc:2622
Answers make(const Answers ans, const char *why)
stores the corresponding decision
Definition: http.cc:2626
Definition: http.h:23
void httpStateConnClosed(const CommCloseCbParams ¶ms)
Definition: http.cc:137
void handleRequestBodyProducerAborted() override
Definition: http.cc:2586
Http1::ResponseParserPointer hp
Parser being used at present to parse the HTTP/ICY server response.
Definition: http.h:152
String * upgradeHeaderOut
Upgrade header value sent to the origin server or cache peer.
Definition: http.h:73
void handle1xx(HttpReply *msg)
ignore or start forwarding the 1xx response (a.k.a., control message)
Definition: http.cc:747
const char * blockSwitchingProtocols(const HttpReply &) const
Definition: http.cc:824
static void httpBuildRequestHeader(HttpRequest *request, StoreEntry *entry, const AccessLogEntryPointer &al, HttpHeader *hdr_out, const Http::StateFlags &flags)
Definition: http.cc:1835
static bool decideIfWeDoRanges(HttpRequest *orig_request)
Definition: http.cc:2264
ConnectionStatus persistentConnStatus() const
Definition: http.cc:1113
void sendComplete()
successfully wrote the entire request (including body, last-chunk, etc.)
Definition: http.cc:1683
void httpTimeout(const CommTimeoutCbParams ¶ms)
Definition: http.cc:145
ReuseDecision::Answers reusableReply(ReuseDecision &decision)
Definition: http.cc:295
void haveParsedReplyHeaders() override
called when we have final (possibly adapted) reply headers; kids extend
Definition: http.cc:938
void requestBodyHandler(MemBuf &)
bool getMoreRequestBody(MemBuf &buf) override
either fill buf with available [encoded] request body bytes or return false
Definition: http.cc:2425
void abortAll(const char *reason) override
abnormal transaction termination; reason is for debugging only
Definition: http.cc:2615
CBDATA_CHILD(HttpStateData)
void processSurrogateControl(HttpReply *)
Definition: http.cc:257
void markPrematureReplyBodyEofFailure()
called on a premature EOF discovered when reading response body
Definition: http.cc:1392
bool mayReadVirginReplyBody() const override
whether we may receive more virgin response body bytes
Definition: http.cc:1574
bool maybeMakeSpaceAvailable(bool grow)
Definition: http.cc:1609
bool peerSupportsConnectionPinning() const
Definition: http.cc:880
virtual void handleMoreRequestBodyAvailable()
Definition: http.cc:2554
void wroteLast(const CommIoCbParams &io)
called after writing the very last request byte (body, last-chunk, etc)
Definition: http.cc:1646
void noteDelayAwareReadChance() override
Definition: http.cc:1163
const Comm::ConnectionPointer & dataConnection() const override
Definition: http.cc:131
void sentRequestBody(const CommIoCbParams &io) override
Definition: http.cc:2606
void proceedAfter1xx()
restores state and resumes processing after 1xx is ignored or forwarded
Definition: http.cc:851
bool finishingChunkedRequest()
if needed, write last-chunk to end the request body and return true
Definition: http.cc:2521
bool finishingBrokenPost()
if broken posts are enabled for the request, try to fix and return true
Definition: http.cc:2486
Definition: TeChunkedParser.h:52
Definition: StateFlags.h:16
Definition: MemBuf.h:24
Definition: Store.h:42
Definition: SquidString.h:26
int httpCachable(const HttpRequestMethod &)
SBuf httpMakeVaryMark(HttpRequest *request, HttpReply const *reply)
Definition: http.cc:588
std::ostream & operator<<(std::ostream &os, const HttpStateData::ReuseDecision &d)
Definition: http.cc:2633