Skip to content

Releases: nokia-steward/restful

v1.21.2

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 08 Oct 12:27

Fixes:

  • Form body limits to respect max body size settings.
  • If non-JSON is received, but that is expected, then respond with 415 instead of 400.

Improvements:

  • Minor documentation update.

v1.21.1

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 01 Oct 14:25
843db31

Empty body decoding fix, HTTP status 204 and similar cases.

v1.21.0

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 16 Sep 10:29

Improvements

  • Go 1.27 json/v2 explicit support.
  • Created JSONOptions to set default marshal/unmarshal options
  • Improved handling of too big body received. Works both for streaming and non-chunked transmissions. Both client and server. Error ErrContentTooLarge is returned in many cases.
  • Redirect: Client may return ErrNonHTTPSURL on redirects even if the original URL is https.
  • Redirect: MaxRedirect can be set. Defaults to 10. If redirects are beyond that, client returns ErrMaxRedirectsExceeded.
  • CRL: limit max file size that can be processed using MaxCRLHTTPBodyBytes. On error the client returns ErrCRLHTTPBodyTooBig and the response body is not read.
  • CRL: HTTP timeout is configurable using CRLHTTPTimeout.
  • CRL: If read interval is not set by the user, it defaults to 24h.
  • Server: ServerWriteTimeout and ServerIdleTimeout timeouts are configurable and have reasonable defaults.

Dropped

  • Drop experimental msgpack support. It was a neat idea, but benchmarks never proved it to have serious advantage.

Fixes

  • Missing response closes
  • Redirect: HTTPS checking is still applied. Client may return ErrNonHTTPSURL on redirects even if the original URL is https.
  • Client: Put() context fix.
  • Client: SendRecvListFirst2xxParallel() used to leave dangling responses.
  • Client: IPv6 URL syntax fix for Retry().
  • Server: Keep TLS config if Restart() is used.
  • Old (non-OTel) tracer: Validate the headers before using.

Other

  • HTTP2 transport rewritten for Go 1.27. It should work just like before.
  • Consistent cleartext protocol checking for OAuth2 token request. No h2 specific code but relies on client HTTPS().

v1.20.0

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 15 May 17:12

Client HTTPS has a new option AllowPrivateHTTP.

v1.19.1: CRL related fixes (#120)

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 17 Apr 10:04
582df2d

Certificate Revocation List (CRL) https URL handling and resource leak fix.

v1.19.0

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 07 Apr 12:01

Breaking changes:

Dropping "Sanitize JSON" feature. It was deprecated for a while. If you still use it, check your data structures: For scalars (e.g. strings) and containers (e.g. slices) use omitempty tag, and structs are to be pointers, again with omitempty tag.

Deprecated SendResponse (now same as SendJSONResponse) and SendLocationResponse (no one uses that).

v1.18.2

Choose a tag to compare

@zombi-HU zombi-HU released this 02 Apr 12:00

What's Changed

New Contributors

Full Changelog: v1.18.1...v1.18.2

v1.18.1

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 27 Feb 14:42

Update packages due to GO-2026-4559

v1.18.0

Choose a tag to compare

@Som-Som-CC Som-Som-CC released this 18 Feb 11:05

Added lambda.RequestBodyQueryParameters. It returns values of the request body query parameters when Content-Type is application/x-www-form-urlencoded.

v1.17.6

Choose a tag to compare

@zombi-HU zombi-HU released this 17 Feb 08:30
feb5f91

What's Changed

Full Changelog: v1.17.5...v1.17.6