Lines Matching defs:uri
631 StringRef rewrite_location_uri(BlockAllocator &balloc, const StringRef &uri,
642 &uri[field->off], &uri[field->off] + field->len) ||
678 p = std::copy_n(&uri[field->off], field->len, p);
683 p = std::copy_n(&uri[field->off], field->len, p);
688 p = std::copy_n(&uri[field->off], field->len, p);
1371 if (!link.uri.empty()) {
1605 StringRef get_pure_path_component(const StringRef &uri) {
1609 rv = http_parser_parse_url(uri.c_str(), uri.size(), 0, &u);
1616 return StringRef{uri.c_str() + f.off, f.len};
1624 const StringRef &base, const StringRef &uri) {
1628 if (uri.size() == 0) {
1634 rv = http_parser_parse_url(uri.c_str(), uri.size(), 0, &u);
1637 if (uri[0] == '/') {
1642 auto end = std::find(std::begin(uri), std::end(uri), '#');
1643 auto q = std::find(std::begin(uri), end, '?');
1645 rel = StringRef{std::begin(uri), q};
1647 relq = StringRef{q + 1, std::end(uri)};
1651 scheme = util::get_uri_field(uri.c_str(), u, UF_SCHEMA);
1655 auto auth = util::get_uri_field(uri.c_str(), u, UF_HOST);
1675 rel = StringRef{uri.c_str() + f.off, f.len};
1682 relq = StringRef{uri.c_str() + f.off, f.len};