Home | History | Annotate | Download | only in io

Lines Matching defs:host

68 // no "/" in the path, the first part of the output is the scheme and host, and
72 StringPiece scheme, host, path;
73 ParseURI(uri, &scheme, &host, &path);
81 return std::make_pair(StringPiece(uri.begin(), host.end() - uri.begin()),
207 void ParseURI(StringPiece remaining, StringPiece* scheme, StringPiece* host,
221 *host = StringPiece(remaining.begin(), 0);
226 // 1. Parse host
227 if (!strings::Scanner(remaining).ScanUntil('/').GetResult(&remaining, host)) {
228 // No path, so the rest of the URI is the host.
229 *host = remaining;
238 string CreateURI(StringPiece scheme, StringPiece host, StringPiece path) {
242 return strings::StrCat(scheme, "://", host, path);