9static const std::string
in1 =
"HEADERS: POST /pg HTTP/1.1\r\n"
10 " Host: 3.91.106.178\r\n"
11 " User-Agent: japicli\r\n"
12 " Authorization: Basic cGc6cHJqN1hKQUpuRkRsZ2V5MXZLaVlVcGhL\r\n"
13 " Content-Type: application/json\r\n"
14 " Content-Length: 49\r\n"
15 " Accept-Encoding: lz4\r\n"
19static const std::string
out1 =
"HEADERS: POST /pg HTTP/1.1\r\n"
20 " Host: 3.91.106.178\r\n"
21 " User-Agent: japicli\r\n"
22 " Authorization: Basic [REDACTED]\r\n"
23 " Content-Type: application/json\r\n"
24 " Content-Length: 49\r\n"
25 " Accept-Encoding: lz4\r\n"
29static const std::string
in2 =
"HEADERS: POST /pg HTTP/1.1\r\n"
30 " Host: 3.91.106.178\r\n"
31 " User-Agent: japicli\r\n"
32 " authorization=basic cGc6cHJqN1hKQUpuRkRsZ2V5MXZLaVlVcGhL\r\n"
33 " Content-Type: application/json\r\n"
34 " Content-Length: 49\r\n"
35 " Accept-Encoding: lz4\r\n"
39static const std::string
out2 =
"HEADERS: POST /pg HTTP/1.1\r\n"
40 " Host: 3.91.106.178\r\n"
41 " User-Agent: japicli\r\n"
42 " authorization=basic [REDACTED]\r\n"
43 " Content-Type: application/json\r\n"
44 " Content-Length: 49\r\n"
45 " Accept-Encoding: lz4\r\n"
std::string headers_redact(const std::string &headers)
static const std::string out1
static const std::string in1
static const std::string in2
static const std::string out2
static std::stringstream out