Stream.h
Go to the documentation of this file.
168 bool mayUseConnection_; /* This request may use the connection. Don't read anymore requests for now */
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
Definition: client_side_request.h:38
Definition: client_side.h:84
Definition: HttpReply.h:25
Definition: Stream.h:151
Definition: Stream.h:73
void sendStartOfMessage(HttpReply *, StoreIOBuffer bodyData)
send an HTTP reply message headers and maybe some initial payload
Definition: Stream.cc:266
struct Http::Stream::@74 flags
void deferRecipientForLater(clientStreamNode *, HttpReply *, StoreIOBuffer receivedData)
Definition: Stream.cc:555
size_t lengthToSend(Range< int64_t > const &available) const
Definition: Stream.cc:337
MessageBucket::Pointer writeQuotaHandler
response write limiter, if configured
Definition: Stream.h:171
void packChunk(const StoreIOBuffer &bodyData, MemBuf &)
Definition: Stream.cc:578
clientStream_status_t socketState()
Adapt stream status to account for Range cases.
Definition: Stream.cc:210
MEMPROXY_CLASS(Stream)
void buildRangeHeader(HttpReply *)
add Range headers (if any) to the given HTTP reply message
Definition: Stream.cc:416
clientStreamNode * getClientReplyContext() const
Definition: Stream.cc:510
void initiateClose(const char *reason)
terminate due to a send/write error (may continue reading)
Definition: Stream.cc:548
Comm::ConnectionPointer clientConnection
details about the client connection socket
Definition: Stream.h:134
void finished()
cleanup when the transaction has finished. may destroy 'this'
Definition: Stream.cc:533
void writeComplete(size_t size)
update stream state after a write, may initiate more I/O
Definition: Stream.cc:67
Stream(const Comm::ConnectionPointer &aConn, ClientHttpRequest *aReq)
construct with HTTP/1.x details
Definition: Stream.cc:23
void noteIoError(const Error &, const LogTagsErrors &)
update state to reflect I/O error
Definition: Stream.cc:524
unsigned deferred
This is a pipelined request waiting for the current object to complete.
Definition: Stream.h:139
Definition: LogTags.h:18
Definition: MemBuf.h:24
Definition: Range.h:19
Definition: StoreIOBuffer.h:16
Definition: clientStream.h:76
Definition: forward.h:18