HasOptions
trait HasOptions
Properties
| protected ArrayRepository|null | $optionRepository | The request options. |
Methods
Get the request options.
Add options to the request.
Remove the given options from 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 47
HasOptions
withoutOptions(array|string $keys)
Remove the given options from the request.
at line 59
HasOptions
maxRedirects(int $max)
Specify the maximum number of redirects to allow.
at line 77
HasOptions
withoutRedirecting()
Indicate that redirects should not be followed.
at line 87
HasOptions
withoutVerifying()
Indicate that TLS certificates should not be verified.
at line 98
HasOptions
sink(resource|StreamInterface|string $to)
Specify where the response body should be stored.
at line 108
HasOptions
timeout(float|int $seconds)
Specify the request timeout in seconds.
at line 118
HasOptions
connectTimeout(float|int $seconds)
Specify the connection timeout in seconds.
at line 129
HasOptions
withTelescopeTags(array $tags)
Add Telescope tags to the request.
at line 139
HasOptions
withoutTelescope()
Disable Telescope recording for the request.
at line 149
protected array
defaultOptions()
Resolve the default request options.
at line 157
protected ArrayRepository
optionRepository()
Get the request option repository.