-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add client support for Connect HTTP GET requests #620
Conversation
aedf5fa
to
bcc2ea7
Compare
/** | ||
* @private Internal code, does not follow semantic versioning. | ||
*/ | ||
export function transformConnectPostToGetRequest< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great use of UnaryRequest 🙂
// TODO(jchadwick-buf): Three regex replaces seems excessive. | ||
// Can we make protoBase64.enc more flexible? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protobuf-es uses this for JSON, and it doesn't seem ideal to add complexity, bundle size there for a feature that is not used by protobuf-es. I agree this isn't pretty, but I am not sure we have a really good alternative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need a PR description. Aside from the comment nit below, and #620 (comment), this looks ready to merge to me.
…hadwick/unary-get-support
Adds support for Connect HTTP GET requests on the client, both in Node.JS and the browser. Requires specifying the transport option
useHttpGet
for now to enable support.Server implementation: #624