]>
Commit | Line | Data |
---|---|---|
86a2f789 | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 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 | 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 | ||
38f44c6a | 28 | ConnStateData * |
98242069 | 29 | ClientHttpRequest::getConn() const |
30 | { | |
26ac0430 AJ |
31 | if (!cbdataReferenceValid(conn_)) |
32 | return NULL; | |
38f44c6a | 33 | |
98242069 | 34 | return conn_; |
35 | } | |
36 | ||
37 | void | |
38f44c6a | 38 | ClientHttpRequest::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 | |
48 | StoreEntry * | |
49 | ClientHttpRequest::loggingEntry() const | |
50 | { | |
51 | return loggingEntry_; | |
52 | } | |
f53969cc | 53 |