Repository navigation
Highlights
This release adds FastHTTP transports, stream and HTTP enhancements, LZ4 compression, a trie-backed REST router, connection prewarming, server precooling, keep-order requests, overload-control hooks, stability fixes, and expanded documentation and examples.
See the changelog for the categorized release history and migration details.
Compatibility
MajorVersion,MinorVersion,PatchVersion, andVersionSuffixare no longer exported. Usetrpc.Version()to obtain the complete version string.server.Serviceno longer requiresServiceName. Code written specifically against the v1.0.4 interface can use a local interface assertion to access the optional method.- Adding overload-control configuration changed the exact anonymous type of
Config.Server; normal field access and YAML configuration remain compatible. transport.ListenServeOptionsandhttp.ClientRspHeaderare no longer comparable after adding callback fields.- The REST router now gives static segments precedence over parameters, and parameters precedence over wildcards.
What's Changed
- typo: replace typo "an" with "a" by @Alan-MQ in #178
- workflows: bump cla from v2.3.2 to v2.4.0 by @liuzengh in #179
- all: run go mod tidy to update go.sum by @liuzengh in #182
- http: fix TestHTTPGotConnectionRemoteAddr by @liuzengh in #195
- admin: remove duplicate calls code by @Jzow in #193
- .resource: disable git-lfs to support synchronization to Gitee by @liuzengh in #199
- lsc: update copyright to tencent by @Flash-LHR in #203
- admin: sync internal bugfixes and enhancements by @liuzengh in #206
- all: sync selected internal bug fixes by @Rememorio in #214
- all: sync selected stream and http features by @Rememorio in #215
- codec: support lz4 compression by @Rememorio in #216
- router: implement trie-based router by @Rememorio in #217
- all: sync selected config http and restful fixes by @Rememorio in #218
- all: sync selected codec and metrics fixes by @Rememorio in #219
- transport: avoid dispatching closed multiplex responses by @Rememorio in #220
- all: sync selected stability fixes by @Rememorio in #221
- log: add DisableTrace by @Rememorio in #222
- all: sync stability and http features by @Rememorio in #223
- all: internalize protocol names by @Rememorio in #226
- transport: report partial read timeout as read failure by @Rememorio in #224
- http: support FastHTTP transport by @Rememorio in #225
- client: support connection prewarming by @Rememorio in #227
- server: support precool checks by @Rememorio in #228
- transport: support keep-order requests by @Rememorio in #229
- http: preserve cookie jar for TLS clients by @Rememorio in #231
- ci: require patch coverage status by @Rememorio in #232
- overloadctrl: add overload control hooks by @Rememorio in #230
- http: export default serialization tag by @Rememorio in #233
- restful: cap pooled body buffers by @Rememorio in #234
- client: avoid private IP in prewarm tests by @Rememorio in #235
- transport/tnet: update tnet dependency by @Rememorio in #236
- restful: wrap custom routes with server filters by @Rememorio in #237
- docs: clarify HTTP routes and client examples by @Rememorio in #238
- examples: add FastHTTP and precool examples by @Rememorio in #240
- examples: add RPC lifecycle examples by @Rememorio in #242
- examples: add keep-order examples by @Rememorio in #243
- examples: add TLS transport examples by @Rememorio in #244
- examples: expand timeout scenarios by @Rememorio in #245
- examples: add prewarm and SSE examples by @Rememorio in #246
- examples: add HTTP feature examples by @Rememorio in #241
- server: restore Service compatibility and fix API check by @Rememorio in #247
- release v1.1.0 by @Rememorio in #248
New Contributors
- @Alan-MQ made their first contribution in #178
- @Jzow made their first contribution in #193
- @Flash-LHR made their first contribution in #203
- @Rememorio made their first contribution in #214
Full Changelog: v1.0.3...v1.1.0