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