2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 #include "client_side.h"
12 #define STUB_API "client_side.cc"
13 #include "tests/STUB.h"
15 //ClientSocketContext::ClientSocketContext(const ConnectionPointer&, ClientHttpRequest*) STUB
16 //ClientSocketContext::~ClientSocketContext() STUB
17 bool ClientSocketContext::startOfOutput() const STUB_RETVAL(false)
18 void ClientSocketContext::writeComplete(const Comm::ConnectionPointer
&conn
, char *bufnotused
, size_t size
, Comm::Flag errflag
) STUB
19 void ClientSocketContext::keepaliveNextRequest() STUB
20 void ClientSocketContext::pullData() STUB
21 int64_t ClientSocketContext::getNextRangeOffset() const STUB_RETVAL(0)
22 bool ClientSocketContext::canPackMoreRanges() const STUB_RETVAL(false)
23 clientStream_status_t
ClientSocketContext::socketState() STUB_RETVAL(STREAM_NONE
)
24 void ClientSocketContext::sendBody(HttpReply
* rep
, StoreIOBuffer bodyData
) STUB
25 void ClientSocketContext::sendStartOfMessage(HttpReply
* rep
, StoreIOBuffer bodyData
) STUB
26 size_t ClientSocketContext::lengthToSend(Range
<int64_t> const &available
) STUB_RETVAL(0)
27 void ClientSocketContext::noteSentBodyBytes(size_t) STUB
28 void ClientSocketContext::buildRangeHeader(HttpReply
* rep
) STUB
29 clientStreamNode
* ClientSocketContext::getTail() const STUB_RETVAL(NULL
)
30 clientStreamNode
* ClientSocketContext::getClientReplyContext() const STUB_RETVAL(NULL
)
31 void ClientSocketContext::connIsFinished() STUB
32 void ClientSocketContext::removeFromConnectionList(ConnStateData
* conn
) STUB
33 void ClientSocketContext::deferRecipientForLater(clientStreamNode
* node
, HttpReply
* rep
, StoreIOBuffer receivedData
) STUB
34 bool ClientSocketContext::multipartRangeRequest() const STUB_RETVAL(false)
35 void ClientSocketContext::registerWithConn() STUB
36 void ClientSocketContext::noteIoError(const int xerrno
) STUB
37 void ClientSocketContext::writeControlMsg(HttpControlMsg
&msg
) STUB
39 void ConnStateData::readSomeData() STUB
40 bool ConnStateData::areAllContextsForThisConnection() const STUB_RETVAL(false)
41 void ConnStateData::freeAllContexts() STUB
42 void ConnStateData::notifyAllContexts(const int xerrno
) STUB
43 bool ConnStateData::clientParseRequests() STUB_RETVAL(false)
44 void ConnStateData::readNextRequest() STUB
45 void ConnStateData::addContextToQueue(ClientSocketContext
* context
) STUB
46 int ConnStateData::getConcurrentRequestCount() const STUB_RETVAL(0)
47 bool ConnStateData::isOpen() const STUB_RETVAL(false)
48 void ConnStateData::sendControlMsg(HttpControlMsg msg
) STUB
49 int64_t ConnStateData::mayNeedToReadMoreBody() const STUB_RETVAL(0)
51 void ConnStateData::setAuth(const Auth::UserRequest::Pointer
&aur
, const char *cause
) STUB
53 bool ConnStateData::transparent() const STUB_RETVAL(false)
54 bool ConnStateData::reading() const STUB_RETVAL(false)
55 void ConnStateData::stopReading() STUB
56 void ConnStateData::stopReceiving(const char *error
) STUB
57 void ConnStateData::stopSending(const char *error
) STUB
58 void ConnStateData::expectNoForwarding() STUB
59 void ConnStateData::noteMoreBodySpaceAvailable(BodyPipe::Pointer
) STUB
60 void ConnStateData::noteBodyConsumerAborted(BodyPipe::Pointer
) STUB
61 bool ConnStateData::handleReadData() STUB_RETVAL(false)
62 bool ConnStateData::handleRequestBodyData() STUB_RETVAL(false)
63 void ConnStateData::pinConnection(const Comm::ConnectionPointer
&pinServerConn
, HttpRequest
*request
, CachePeer
*peer
, bool auth
, bool monitor
) STUB
64 void ConnStateData::unpinConnection(const bool andClose
) STUB
65 const Comm::ConnectionPointer
ConnStateData::validatePinnedConnection(HttpRequest
*request
, const CachePeer
*peer
) STUB_RETVAL(NULL
)
66 void ConnStateData::clientPinnedConnectionClosed(const CommCloseCbParams
&io
) STUB
67 void ConnStateData::clientReadRequest(const CommIoCbParams
&io
) STUB
68 void ConnStateData::connStateClosed(const CommCloseCbParams
&io
) STUB
69 void ConnStateData::requestTimeout(const CommTimeoutCbParams
¶ms
) STUB
70 void ConnStateData::swanSong() STUB
71 void ConnStateData::quitAfterError(HttpRequest
*request
) STUB
73 void ConnStateData::httpsPeeked(Comm::ConnectionPointer serverConnection
) STUB
74 void ConnStateData::getSslContextStart() STUB
75 void ConnStateData::getSslContextDone(Security::ContextPointer
, bool) STUB
76 void ConnStateData::sslCrtdHandleReplyWrapper(void *data
, const Helper::Reply
&reply
) STUB
77 void ConnStateData::sslCrtdHandleReply(const Helper::Reply
&reply
) STUB
78 void ConnStateData::switchToHttps(HttpRequest
*request
, Ssl::BumpMode bumpServerMode
) STUB
79 void ConnStateData::buildSslCertGenerationParams(Ssl::CertificateProperties
&certProperties
) STUB
80 bool ConnStateData::serveDelayedError(ClientSocketContext
*context
) STUB_RETVAL(false)
83 bool ConnStateData::In::maybeMakeSpaceAvailable() STUB_RETVAL(false)
85 void setLogUri(ClientHttpRequest
* http
, char const *uri
, bool cleanUrl
) STUB
86 const char *findTrailingHTTPVersion(const char *uriAndHTTPVersion
, const char *end
) STUB_RETVAL(NULL
)
87 int varyEvaluateMatch(StoreEntry
* entry
, HttpRequest
* req
) STUB_RETVAL(0)
88 void clientOpenListenSockets(void) STUB
89 void clientHttpConnectionsClose(void) STUB
90 void httpRequestFree(void *) STUB