MCPcopy Create free account
hub / github.com/chrxh/alien / adjust_host_string

Method adjust_host_string

external/cpp-httplib/httplib.h:6509–6513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6507 }
6508
6509 inline std::string
6510 ClientImpl::adjust_host_string(const std::string& host) const {
6511 if (host.find(':') != std::string::npos) { return "[" + host + "]"; }
6512 return host;
6513 }
6514
6515 inline bool ClientImpl::process_request(Stream& strm, Request& req,
6516 Response& res, bool close_connection,

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected