Skip to content

8.7.1

Compare
Choose a tag to compare
@starwalkn starwalkn released this 02 Dec 12:40
· 9 commits to master since this release
2aa4bb0

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.