-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support http1 for request-response protocol deployments (#1232)
* Support http1 for request-response protocol deployments We already have the plumbing to set the request version appropriately based on discovered version (discovery goes through HTTP1.1 by default). We just end up ignoring that version at the last minute by setting the client to be http2 only. With this change, we will discover with http2, and fallback to http1.1 if it doesn't appear to be supported. The fallback request will respect ALPN, so it could technically still end up using http2 against HTTPS endpoints, but this would be odd. * Accept a flag to force the use of http2 * Add flag to CLI * Add comments
- Loading branch information
1 parent
c6aea0c
commit 7ace3c4
Showing
10 changed files
with
112 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## META0014 | ||
|
||
Service discovery response failed, and the server may have responded in HTTP1.1. | ||
This can happen when discovering locally running dev servers from Faas platforms | ||
eg `wrangler dev`. FaaS platforms in generally will support HTTP2, however, so | ||
this is only a local development concern. | ||
|
||
You can try to discover the endpoint with `--use-http1.1` when working | ||
with these local dev servers. This should not be needed in production. |
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
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
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
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
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