MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / adjust_host_string

Method adjust_host_string

examples/server/httplib.h:7251–7255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7249}
7250
7251inline std::string
7252ClientImpl::adjust_host_string(const std::string &host) const {
7253 if (host.find(':') != std::string::npos) { return "[" + host + "]"; }
7254 return host;
7255}
7256
7257inline bool ClientImpl::process_request(Stream &strm, Request &req,
7258 Response &res, bool close_connection,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected