Lines Matching defs:config
56 int parse_push_config(Config &config, const char *optarg) {
61 auto &paths = config.push[std::string(optarg, eq)];
96 Config config;
146 << config.max_concurrent_streams << R"(
178 << config.mime_types_file << R"(
202 Config config;
245 config.address = optarg;
248 config.daemon = true;
251 config.verify_client = true;
259 config.padding = n;
263 config.htdocs = optarg;
266 config.error_gzip = true;
275 config.max_concurrent_streams = n;
288 config.num_worker = n;
296 config.verbose = true;
309 config.header_table_size = n;
313 if (parse_push_config(config, optarg) != 0) {
328 config.window_bits = n;
330 config.connection_window_bits = n;
342 config.no_tls = true;
354 config.dh_param_file = optarg;
358 config.early_response = true;
380 config.trailer.emplace_back(header, value, false);
381 util::inp_strlower(config.trailer.back().name);
386 config.hexdump = true;
390 config.echo_upload = true;
395 config.mime_types_file = optarg;
399 config.no_content_length = true;
415 config.encoder_header_table_size = n;
420 config.ktls = true;
424 config.no_rfc7540_pri = true;
432 if (argc - optind < (config.no_tls ? 1 : 3)) {
445 config.port = n;
448 if (!config.no_tls) {
449 config.private_key_file = argv[optind++];
450 config.cert_file = argv[optind++];
453 if (config.daemon) {
454 if (config.htdocs.empty()) {
468 if (config.htdocs.empty()) {
469 config.htdocs = "./";
472 if (util::read_mime_types(config.mime_types,
473 config.mime_types_file.c_str()) != 0) {
476 << config.mime_types_file << std::endl;
480 auto &trailer_names = config.trailer_names;
481 for (auto &h : config.trailer) {
497 HttpServer server(&config);