Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ func WithHTTPClient(client *http.Client) Option {
}
}

// WithAPIEndpointURL overrides default Webhook Relay API server address.
// Default: "https://my.webhookrelay.com/v1"
func WithAPIEndpointURL(apiBaseURL string) Option {
return func(api *API) error {
api.BaseURL = apiBaseURL
return nil
}
}

// WithHeaders allows you to set custom HTTP headers when making API calls (e.g. for
// satisfying HTTP proxies, or for debugging).
func WithHeaders(headers http.Header) Option {
Expand Down