9#ifndef SQUID_SRC_HTTP_STREAM_H
10#define SQUID_SRC_HTTP_STREAM_H
18#include "mem/forward.h"
147 debugs(33, 3,
"This " <<
this <<
" marked " << aBool);
#define RefCountable
The locking interface for use on Reference-Counted classes.
StoreIOBuffer queuedBuffer
void sendStartOfMessage(HttpReply *, StoreIOBuffer bodyData)
send an HTTP reply message headers and maybe some initial payload
void deferRecipientForLater(clientStreamNode *, HttpReply *, StoreIOBuffer receivedData)
DeferredParams deferredparams
unsigned parsed_ok
Was this parsed correctly?
size_t lengthToSend(Range< int64_t > const &available) const
MessageBucket::Pointer writeQuotaHandler
response write limiter, if configured
bool canPackMoreRanges() const
void registerWithConn()
register this stream with the Server
void packChunk(const StoreIOBuffer &bodyData, MemBuf &)
void mayUseConnection(bool aBool)
struct Http::Stream::@58 flags
bool connRegistered() const
whether it is registered with a Server
ConnStateData * getConn() const
clientStream_status_t socketState()
Adapt stream status to account for Range cases.
void sendBody(StoreIOBuffer bodyData)
send some HTTP reply message payload
void buildRangeHeader(HttpReply *)
add Range headers (if any) to the given HTTP reply message
char reqbuf[HTTP_REQBUF_SZ]
clientStreamNode * getClientReplyContext() const
void packRange(StoreIOBuffer const &, MemBuf *)
void initiateClose(const char *reason)
terminate due to a send/write error (may continue reading)
int64_t getNextRangeOffset() const
bool multipartRangeRequest() const
Comm::ConnectionPointer clientConnection
details about the client connection socket
bool startOfOutput() const
whether the reply has started being sent
void noteSentBodyBytes(size_t)
void finished()
cleanup when the transaction has finished. may destroy 'this'
void writeComplete(size_t size)
update stream state after a write, may initiate more I/O
void prepareReply(HttpReply *)
clientStreamNode * getTail() const
void noteIoError(const Error &, const LogTagsErrors &)
update state to reflect I/O error
bool mayUseConnection() const
unsigned deferred
This is a pipelined request waiting for the current object to complete.
void pullData()
get more data to send
#define debugs(SECTION, LEVEL, CONTENT)