Skip to content

v0.16.0

Compare
Choose a tag to compare
@ggicci ggicci released this 28 Jan 23:47
· 17 commits to main since this release

API Changes

Added optional parameter opts ...core.Option to the following APIs:

  • httpin.Decode(req *http.Request, input any) error -> httpin.Decode(req *http.Request, input any, opts ...core.Option) error
  • httpin.NewRequest(method, url string, input any) (*http.Request, error) -> httpin.NewRequest(method, url string, input any, opts ...core.Option) (*http.Request, error)
  • httpin.NewRequestWithContext(ctx context.Context, method, url string, input any) (*http.Request, error) -> httpin.NewRequestWithContext(ctx context.Context, method, url string, input any, opts ...core.Option) (*http.Request, error)

Added a new variable httpin.Option where is a collection of the options.