• Home
  • Raw
  • Download

Lines Matching +full:config +full:- +full:array

2  * nghttp2 - HTTP/2 C Library
26 # include <config.h>
60 static deflate_config config; variable
67 return n - 10 + 'a'; in to_hex_digit()
103 json_integer(config.table_size)); in output_to_json()
105 if (config.dump_header_table) { in output_to_json()
117 std::array<uint8_t, 64_k> buf; in deflate_hd()
139 return -1; in deflate_hd_json()
142 fprintf(stderr, "The value of 'headers' key must be an array at %d\n", seq); in deflate_hd_json()
143 return -1; in deflate_hd_json()
156 return -1; in deflate_hd_json()
165 return -1; in deflate_hd_json()
184 nghttp2_hd_deflate_new(&deflater, config.deflate_table_size); in init_deflater()
185 if (config.table_size != NGHTTP2_DEFAULT_HEADER_TABLE_SIZE) { in init_deflater()
186 nghttp2_hd_deflate_change_table_size(deflater, config.table_size); in init_deflater()
213 fprintf(stderr, "'cases' must be JSON array\n"); in perform()
312 Reads JSON data or HTTP/1-style header fields from stdin and outputs in print_help()
313 deflated header block in JSON array. in print_help()
322 is an array of a JSON object containing exactly one name/value pair. in print_help()
344 With -t option, the program can accept more familiar HTTP/1 style in print_help()
355 user-agent: nghttp2 in print_help()
360 -t, --http1text Use HTTP/1 style header field text as input. in print_help()
363 -s, --table-size=<N> in print_help()
368 -S, --deflate-table-size=<N> in print_help()
372 -d, --dump-header-table in print_help()
379 {"table-size", required_argument, nullptr, 's'},
380 {"deflate-table-size", required_argument, nullptr, 'S'},
381 {"dump-header-table", no_argument, nullptr, 'd'},
385 config.table_size = 4_k; in main()
386 config.deflate_table_size = 4_k; in main()
387 config.http1text = 0; in main()
388 config.dump_header_table = 0; in main()
392 if (c == -1) { in main()
400 // --http1text in main()
401 config.http1text = 1; in main()
404 // --table-size in main()
407 fprintf(stderr, "-s: Bad option value\n"); in main()
410 config.table_size = *n; in main()
414 // --deflate-table-size in main()
417 fprintf(stderr, "-S: Bad option value\n"); in main()
420 config.deflate_table_size = *n; in main()
424 // --dump-header-table in main()
425 config.dump_header_table = 1; in main()
433 if (config.http1text) { in main()