WordPress\AiClient\Providers\Http\DTO
Request::withOptions
Returns a new instance with the specified request options.
Method of the class: Request{}
No Hooks.
Returns
self. A new instance with the options.
Usage
$Request = new Request(); $Request->withOptions( ?\WordPress\AiClient\Providers\Http\DTO\RequestOptions $options ): self;
- ?\WordPress\AiClient\Providers\Http\DTO\RequestOptions $options(required)
- .
Changelog
| Since 0.2.0 | Introduced. |
Request::withOptions() Request::withOptions code WP 7.0.4
public function withOptions(?\WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): self
{
$new = clone $this;
$new->options = $options;
return $new;
}