Hi there 👋
I'm trying to implement a flag --limit-request-header-count on uvicorn, which I implemented changing the value of an attribute too_many_headers and raising an exception from on_header callback, see https://github.com/encode/uvicorn/pull/1683/files.
My question is: is my implementation as intended? Should the HttpParserCallbackError send more information when an exception happens from one of the callbacks?
Hi there 👋
I'm trying to implement a flag
--limit-request-header-countonuvicorn, which I implemented changing the value of an attributetoo_many_headersand raising an exception fromon_headercallback, see https://github.com/encode/uvicorn/pull/1683/files.My question is: is my implementation as intended? Should the
HttpParserCallbackErrorsend more information when an exception happens from one of the callbacks?