Releases: nokia/restful
Releases · nokia/restful
v1.12.0
SetOTelGrpc
got a new parameter for trace sampling fraction, if parent is not sampled.- OTel tracing can be activated using its environment variables. See https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
v1.11.6
What's Changed
- add H2 and H2C client, that can bind to network interface, such as "eth0".
Full Changelog: v1.11.5...V1.11.6
v1.11.5
Fix for validation if incoming request data type is not a struct.
v1.11.4
- server.Graceful() to accept connections till defined duration. That differs from earlier behavior, when listener was closed immediately and only hanging connections were awaited.
- Differentiate
/healthz
and/livez
endpoint behavior. The former sendsConnection: close
header, too. Thus caller can check if listening and accepting new connections works. While the latter just checks if the process is alive.
v1.11.3: content type handling for custom error (#78)
Content type checked against what was received in Accept
header for NewErrorWithBody
.
v1.11.2
NewErrorWithBody
improvements for server side.
v1.11.1
- Bugfix: No crash if
client.Retry()
was set and the request is server-originatedhttp.Request
supplied toclient.Do()
. That may occur if blindly forwarding requests. - New:
NewErrorWithBody()
to create a new error in a strictly controlled manner.
v1.11.0
Validator for lambda using https://github.com/go-validator/validator. On error status 422 is responded.
Note that client response is not validated in this fashion.
GO-2024-2958 vulnerability fix
govuln fix (#71) Co-authored-by: Aron Csatlos <aron.csatlos@nokia.com>
v1.10.1: oauth2-client-update (#70)
SetOauth2Conf
now has a client parameter. You may use nil
.