-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): add
HttpConnector.enforce_http
This will make the `HttpConnector` require the `scheme` to be `http`, and return an error otherwise. This value is enabled by default, so any requests to URLs that aren't of scheme `http` will now see an error message stating the failure. When constructing a connector that wraps an `HttpConnector`, this enforcement can be disabled to allow connecting over TCP easily even when the scheme is not `http`. To do, call `connector.enforce_http(false)`.
- Loading branch information
1 parent
f1859df
commit 1c34a05
Showing
1 changed file
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters