PreRequestOptions is used to collect all the options which need to be known before.
func PreRequestOptions(opts ...RequestOption) (RequestConfig, error)PreRequestOptions is used to collect all the options which need to be known before a call to [RequestConfig.ExecuteNewRequest], such as path parameters or global defaults. PreRequestOptions will return a [RequestConfig] with the options applied.
Only request option functions of type [PreRequestOptionFunc] are applied.
| Name | Type | Description |
|---|---|---|
opts* | ...RequestOption |