The idea for this PR came up from this discussion in the hyper repo.
This PR tries to make a request version of the ParserConfig::ignore_invalid_headers_in_responses configuration, introduced as ParserConfig::ignore_invalid_headers_in_requests, so that we can also ignore invalid headers in requests.
In order to achieve that avoiding breaking backwards compatibility, it splits the ParserConfig struct used for parse_headers_iter_uninit into ParserConfig and HeaderParserConfig.
The idea for this PR came up from this discussion in the hyper repo.
This PR tries to make a request version of the
ParserConfig::ignore_invalid_headers_in_responses
configuration, introduced asParserConfig::ignore_invalid_headers_in_requests
, so that we can also ignore invalid headers in requests.In order to achieve that avoiding breaking backwards compatibility, it splits the
ParserConfig
struct used forparse_headers_iter_uninit
intoParserConfig
andHeaderParserConfig
.Happy to reassess the tests or the approach.