HasOptions
trait HasOptions
Properties
| protected ArrayRepository|null | $optionRepository | The request options. |
Methods
Get the request options.
Add options to the request.
Specify the maximum number of redirects to allow.
Indicate that redirects should not be followed.
Indicate that TLS certificates should not be verified.
Specify where the response body should be stored.
Specify the request timeout in seconds.
Specify the connection timeout in seconds.
Add Telescope tags to the request.
Disable Telescope recording for the request.
Resolve the default request options.
Get the request option repository.
Details
at line 23
array
options()
Get the request options.
at line 34
HasOptions
withOptions(array $options)
Add options to the request.
at line 46
HasOptions
maxRedirects(int $max)
Specify the maximum number of redirects to allow.
at line 64
HasOptions
withoutRedirecting()
Indicate that redirects should not be followed.
at line 74
HasOptions
withoutVerifying()
Indicate that TLS certificates should not be verified.
at line 85
HasOptions
sink(resource|StreamInterface|string $to)
Specify where the response body should be stored.
at line 95
HasOptions
timeout(float|int $seconds)
Specify the request timeout in seconds.
at line 105
HasOptions
connectTimeout(float|int $seconds)
Specify the connection timeout in seconds.
at line 116
HasOptions
withTelescopeTags(array $tags)
Add Telescope tags to the request.
at line 126
HasOptions
withoutTelescope()
Disable Telescope recording for the request.
at line 136
protected array
defaultOptions()
Resolve the default request options.
at line 144
protected ArrayRepository
optionRepository()
Get the request option repository.