v0.16.0
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.