v0.9.0 #641
timostamm
announced in
Announcements
v0.9.0
#641
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
As of this release, connect-es supports performing idempotent, side-effect free requests using HTTP GETs. This makes it easier to cache responses in the browser, on your CDN, or in proxies and other middleboxes.
To opt into GET support for a given Protobuf RPC, you must mark it as being side-effect free using the MethodOptions.IdempotencyLevel option:
With this schema change, handlers will automatically support both GET and POST requests for this RPC. However, clients will continue to use POST requests by default, even when GETs are possible. To make clients use GETs for side effect free RPCs, set the
useHttpGet
option:Another noteworthy change is the full support of timeouts, also known as deadlines in gRPC. For example, when a client provides the
timeoutMs
call option, a headerConnect-Timeout-Ms
is added to the request. The server parses this timeout, and if it takes longer than the given timeout to process the request, it should give up, and respond with the error codedeadline_exceeded
.On a connect-es server, the parsed timeout is available as an
AbortSignal
on the context:Enhancements
Bugfixes
Breaking changes
New Contributors
Full Changelog: v0.8.6...v0.9.0
This discussion was created from the release v0.9.0.
Beta Was this translation helpful? Give feedback.
All reactions