]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/clients/HttpTunnelerAnswer.cc
2 * Copyright (C) 1996-2020 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 "clients/HttpTunnelerAnswer.h"
11 #include "comm/Connection.h"
12 #include "errorpage.h"
14 Http::TunnelerAnswer::~TunnelerAnswer()
16 delete squidError
.get();
20 Http::operator <<(std::ostream
&os
, const TunnelerAnswer
&answer
)
24 if (const auto squidError
= answer
.squidError
.get()) {
25 os
<< "SquidErr:" << squidError
->page_id
;
28 if (const auto extraBytes
= answer
.leftovers
.length())
29 os
<< '+' << extraBytes
;
32 if (answer
.peerResponseStatus
!= Http::scNone
)
33 os
<< ' ' << answer
.peerResponseStatus
;