HttpTunnelerAnswer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 #ifndef SQUID_SRC_CLIENTS_HTTPTUNNELERANSWER_H
10 #define SQUID_SRC_CLIENTS_HTTPTUNNELERANSWER_H
11 
12 #include "base/CbcPointer.h"
13 #include "comm/Connection.h"
14 #include "http/StatusCode.h"
15 #include "sbuf/SBuf.h"
16 
17 class ErrorState;
18 
19 namespace Http {
20 
30 {
31 public:
33  ~TunnelerAnswer();
34 
35  bool positive() const { return !squidError; }
36 
37  // Destructor will erase squidError if it is still set. Answer recipients
38  // must clear this member to keep its info.
39  // XXX: We should refcount ErrorState instead of cbdata-protecting it.
41 
43 
46 
48 };
49 
50 std::ostream &operator <<(std::ostream &, const TunnelerAnswer &);
51 
52 } // namespace Http
53 
54 #endif /* SQUID_SRC_CLIENTS_HTTPTUNNELERANSWER_H */
55 
@ scNone
Definition: StatusCode.h:21
Definition: SBuf.h:93
StatusCode
Definition: StatusCode.h:20
Definition: forward.h:17
~TunnelerAnswer()
deletes squidError if it is still set
std::ostream & operator<<(std::ostream &, const TunnelerAnswer &)
Comm::ConnectionPointer conn
SBuf leftovers
peer-generated bytes after a positive answer (or empty)
StatusCode peerResponseStatus
the status code of the successfully parsed CONNECT response (or scNone)
CbcPointer< ErrorState > squidError
problem details (or nil)

 

Introduction

Documentation

Support

Miscellaneous