Commit Graph

2 Commits

Author SHA1 Message Date
Abhinav Singh 21499ad1cb
Bail out early for non-HTTP but HTTP looking protocols (#972)
* Add support in `Url` to parse all types of schemes

* .

* Guard handler against http looking protocol but not web or proxy requests

* Fix condition for web server protocol detection

* doc happy

* Update flags and type check imports only
2022-01-18 00:11:48 +05:30
Abhinav Singh d22d551168
Optimize how `HttpProtocolHandler` delegates to the core plugins (#925)
* Add `protocols` abstract static method to `HttpProtocolHandlerBase` which defines which HTTP specification is followed by the core plugin

* lint

* Fix tests

* Lint fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-31 15:58:36 +05:30