Lines Matching refs:path

235 read_quic_secret_file(const StringRef &path) {
242 std::ifstream f(path.c_str());
244 LOG(ERROR) << "frontend-quic-secret-file: could not open file " << path;
289 << path;
296 << path;
1065 } else if (util::istarts_with_l(param, "affinity-cookie-path=")) {
1066 out.affinity.cookie.path =
1067 StringRef{first + str_size("affinity-cookie-path="), end};
1171 // Parses host-path mapping patterns in |src_pattern|, and stores
1172 // mappings in config. We will store each host-path pattern found in
1239 auto path = http2::normalize_path_colon(
1244 path.size() + 1);
1248 p = std::copy(std::begin(path), std::end(path), p);
1263 if (!params.affinity.cookie.path.empty()) {
1264 g.affinity.cookie.path = make_string_ref(
1265 downstreamconf.balloc, params.affinity.cookie.path);
1272 g.affinity.cookie.path != params.affinity.cookie.path ||
1286 // All backends in the same group must have the same mruby path.
1344 if (!params.affinity.cookie.path.empty()) {
1345 g.affinity.cookie.path =
1346 make_string_ref(downstreamconf.balloc, params.affinity.cookie.path);
1363 auto path = StringRef{path_first, std::end(g.pattern)};
1366 if (path[path.size() - 1] == '*') {
1367 path = StringRef{std::begin(path), std::begin(path) + path.size() - 1};
1379 router.add_route(path, idx, path_is_wildcard);
1389 (*it).router.add_route(path, idx, path_is_wildcard);
1460 auto path = StringRef{eq + 1, std::end(optarg)};
1463 auto fd = open(path.c_str(), O_RDONLY);
1580 std::string path;
1581 path.resize(dir_path.size() + 1 + name.size());
1583 auto p = std::begin(path);
1589 auto fd = open(path.c_str(), O_RDONLY);
1592 LOG(ERROR) << opt << ": failed to read SCT from " << path << ": "
1612 LOG(ERROR) << opt << ": failed to read SCT data from " << path << ": "
1657 // Reads PSK secrets from path, and parses each line. The result is
1660 int parse_psk_secrets(Config *config, const StringRef &path) {
1663 std::ifstream f(path.c_str(), std::ios::binary);
1665 LOG(ERROR) << SHRPX_OPT_PSK_SECRETS << ": could not open file " << path;
1723 // Reads PSK secrets from path, and parses each line. The result is
1726 int parse_client_psk_secrets(Config *config, const StringRef &path) {
1729 std::ifstream f(path.c_str(), std::ios::binary);
1732 << path;
2832 auto path = std::begin(optarg) + SHRPX_UNIX_PATH_PREFIX.size();
2834 make_string_ref(downstreamconf.balloc, StringRef{path, addr_end});
2915 auto path = std::begin(optarg) + SHRPX_UNIX_PATH_PREFIX.size();
2916 addr.host = make_string_ref(config->balloc, StringRef{path, addr_end});
4463 LOG(INFO) << "Host-path pattern: group " << i << ": '" << g.pattern
4533 auto path = addr.host.c_str();
4537 LOG(FATAL) << "UNIX domain socket path " << path << " is too long > "
4543 LOG(INFO) << "Use UNIX domain socket path " << path
4548 // copy path including terminal NULL
4549 std::copy_n(path, pathlen + 1, addr.addr.su.un.sun_path);