]> git.ipfire.org Git - thirdparty/squid.git/blame - src/client_side_request.cci
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / client_side_request.cci
CommitLineData
86a2f789 1/*
bbc27441 2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
26ac0430 3 *
bbc27441
AJ
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.
86a2f789 7 */
8
bbc27441
AJ
9/* DEBUG: section 85 Client-side Request Routines */
10
3d41e53a
FC
11#include "Store.h"
12
86a2f789 13StoreEntry *
14ClientHttpRequest::storeEntry() const
15{
16 return entry_;
17}
18
19MemObject *
20ClientHttpRequest::memObject() const
21{
22 if (storeEntry())
23 return storeEntry()->mem_obj;
24
25 return NULL;
26}
27
38f44c6a 28ConnStateData *
98242069 29ClientHttpRequest::getConn() const
30{
26ac0430
AJ
31 if (!cbdataReferenceValid(conn_))
32 return NULL;
38f44c6a 33
98242069 34 return conn_;
35}
36
37void
38f44c6a 38ClientHttpRequest::setConn(ConnStateData * aConn)
98242069 39{
5ffbc135 40 assert (conn_ == NULL || aConn == NULL);
38f44c6a 41
26ac0430
AJ
42 if (conn_)
43 cbdataReferenceDone(conn_);
38f44c6a 44
45 conn_ = cbdataReference(aConn);
98242069 46}
0976f8db 47
48StoreEntry *
49ClientHttpRequest::loggingEntry() const
50{
51 return loggingEntry_;
52}