11#ifndef SQUID_SRC_DNS_LOOKUPDETAILS_H
12#define SQUID_SRC_DNS_LOOKUPDETAILS_H
32 error(anError.isEmpty() ?
std::nullopt :
std::make_optional(anError)),
36 std::ostream &
print(std::ostream &os)
const;
39 const std::optional<SBuf>
error;
encapsulates DNS lookup results
LookupDetails()
no lookup attempt: no error and no lookup delay
std::ostream & print(std::ostream &os) const
LookupDetails(const SBuf &anError, const int aWait)
const std::optional< SBuf > error
error message (if any)
int wait
msecs spent waiting for the lookup (if any) or -1 (if none)
std::ostream & operator<<(std::ostream &os, const LookupDetails &dns)