8.7.1
Feature
Changed signatures of methods that accepted data in pre-formatted JSON format. These methods now accept understandable data types as arguments.
The gotenberg.Cookie
type validates internally the passed data when the Cookies()
method is called.
List of changed methods:
Chromium requests (HTML, Markdown, URL):
Cookies(cookies []byte)
=> Cookies(cookies []gotenberg.Cookie) error
ExtraHTTPHeaders(headers []byte)
=> ExtraHTTPHeaders(headers map[string]string) error
FailOnHTTPStatusCodes(statusCodes []byte)
=> FailOnHTTPStatusCodes(statusCodes []int) error
FailOnResourceHTTPStatusCodes(statusCodes []byte)
=> FailOnResourceHTTPStatusCodes(statusCodes []int) error
All requests:
SetWebhookExtraHeaders(headers byte)
=> SetWebhookExtraHeaders(headers map[string]string) error
Chore
Gotenberg version updated to 8.14.1 for tests.