Lines Matching defs:config
138 Config config;
190 return config.scheme_override.empty()
192 : StringRef{config.scheme_override};
196 return config.host_override.empty()
198 : StringRef{config.host_override};
203 return config.host_override.empty() ? util::has_uri_field(u, UF_PORT) ? u.port
206 : config.port_override == 0 ? scheme == "https" ? 443 : 80
207 : config.port_override;
295 if (config.no_dep) {
407 if (config.verbose) {
464 if (config.continuation) {
474 if (!config.no_content_length) {
478 if (config.expect_continue) {
512 if (!config.trailer.empty()) {
513 trailer_names = config.trailer[0].name;
514 for (size_t i = 1; i < config.trailer.size(); ++i) {
516 trailer_names += config.trailer[i].name;
620 ev_timer_init(&wt, timeoutcb, 0., config.timeout);
621 ev_timer_init(&rt, timeoutcb, 0., config.timeout);
642 return config.upgrade && scheme == "http";
698 config.host_override.empty() ? host : config.host_override;
879 if (config.verbose) {
924 iv[0].value = config.max_concurrent_streams;
927 if (config.window_bits != -1) {
928 iv[1].value = (1 << config.window_bits) - 1;
933 if (config.header_table_size >= 0) {
934 if (config.min_header_table_size < config.header_table_size) {
936 iv[niv].value = config.min_header_table_size;
941 iv[niv].value = config.header_table_size;
945 if (config.no_push) {
951 if (config.no_rfc7540_pri) {
985 std::begin(config.headers), std::end(config.headers),
988 if (meth == std::end(config.headers)) {
1007 for (auto &kv : config.headers) {
1036 if (config.verbose) {
1065 if (config.verbose) {
1080 if (config.verbose) {
1090 if (config.verbose) {
1133 if (config.verbose) {
1154 config.http2_option);
1193 if (!config.no_dep) {
1241 if (config.connection_window_bits != -1) {
1242 int32_t window_size = (1 << config.connection_window_bits) - 1;
1253 if (submit_request(this, config.headers, (*i).get()) != 0) {
1264 if (config.hexdump) {
1345 if (config.verify_peer) {
1478 if (config.multiply == 1) {
1717 submit_request(client, config.headers, client->reqvec.back().get());
1742 if (config.verbose >= 2) {
1763 if (!config.null_out) {
1775 if (!config.null_out) {
1789 return std::min(max_payload, frame->hd.length + config.padding);
1845 if (config.get_assets && req->level == 0) {
1905 if (config.verbose) {
1974 if (config.verbose) {
2085 if (config.multiply == 1) {
2115 if (config.verbose) {
2260 if (config.verbose) {
2265 if (config.verbose) {
2305 if (config.ktls) {
2333 if (!config.keyfile.empty()) {
2334 if (SSL_CTX_use_PrivateKey_file(ssl_ctx, config.keyfile.c_str(),
2342 if (!config.certfile.empty()) {
2344 config.certfile.c_str()) != 1) {
2367 if (!config.no_dep) {
2376 for (int i = 0; i < config.multiply; ++i) {
2402 if (!config.harfile.empty()) {
2404 if (config.harfile == "-") {
2407 outfile = fopen(config.harfile.c_str(), "wb");
2417 std::cerr << "Cannot open file " << config.harfile << ". "
2428 if (config.stat) {
2463 if (!config.trailer.empty()) {
2465 nva.reserve(config.trailer.size());
2466 for (auto &kv : config.trailer) {
2503 if (config.verbose) {
2529 if (config.padding) {
2542 if (!config.datafile.empty()) {
2543 if (config.datafile == "-") {
2590 data_fd = open(config.datafile.c_str(), O_RDONLY | O_BINARY);
2592 std::cerr << "[ERROR] Could not open file " << config.datafile
2598 std::cerr << "[ERROR] Could not stat file " << config.datafile
2644 data_stat.st_size, config.weight[next_weight_idx++]);
2854 config.peer_max_concurrent_streams = n;
2858 config.remote_name = true;
2869 config.padding = n;
2873 config.null_out = true;
2883 config.weight.push_back(n);
2888 config.harfile = optarg;
2895 ++config.verbose;
2898 config.timeout = util::parse_duration_with_unit(optarg);
2899 if (config.timeout == std::numeric_limits<double>::infinity()) {
2905 config.upgrade = true;
2917 config.window_bits = n;
2919 config.connection_window_bits = n;
2943 config.headers.emplace_back(header, value, false);
2944 util::inp_strlower(config.headers.back().name);
2949 config.get_assets = true;
2956 config.stat = true;
2959 config.datafile = optarg;
2967 config.multiply = n;
2981 config.header_table_size = n;
2982 config.min_header_table_size = std::min(config.min_header_table_size, n);
2986 config.verify_peer = false;
2995 config.certfile = optarg;
2999 config.keyfile = optarg;
3007 config.continuation = true;
3015 config.no_content_length = true;
3019 config.no_dep = true;
3041 config.trailer.emplace_back(header, value, false);
3042 util::inp_strlower(config.trailer.back().name);
3047 config.hexdump = true;
3051 config.no_push = true;
3061 config.max_concurrent_streams = n;
3066 config.expect_continue = true;
3082 config.encoder_header_table_size = n;
3087 config.ktls = true;
3091 config.no_rfc7540_pri = true;
3101 if (config.weight.empty()) {
3104 weight_to_fill = config.weight.back();
3106 config.weight.insert(std::end(config.weight), argc - optind, weight_to_fill);
3110 std::find_if(std::begin(config.headers), std::end(config.headers),
3112 if (scheme_it != std::end(config.headers)) {
3113 config.scheme_override = (*scheme_it).value;
3118 std::find_if(std::begin(config.headers), std::end(config.headers),
3120 if (authority_it == std::end(config.headers)) {
3122 std::find_if(std::begin(config.headers), std::end(config.headers),
3126 if (authority_it != std::end(config.headers)) {
3137 config.host_override = util::get_uri_field(uri.c_str(), u, UF_HOST).str();
3139 config.port_override = u.port;
3146 config.http2_option, config.peer_max_concurrent_streams);
3148 if (config.encoder_header_table_size != -1) {
3150 config.http2_option, config.encoder_header_table_size);