WordPress\AiClient\Providers\Http\DTO
RequestOptions::getJsonSchema
{@inheritDoc}
Method of the class: RequestOptions{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = RequestOptions::getJsonSchema(): array;
Changelog
| Since 0.2.0 | Introduced. |
RequestOptions::getJsonSchema() RequestOptions::getJsonSchema code WP 7.0
public static function getJsonSchema(): array
{
return ['type' => 'object', 'properties' => [self::KEY_TIMEOUT => ['type' => ['number', 'null'], 'minimum' => 0, 'description' => 'Maximum duration in seconds to wait for the full response.'], self::KEY_CONNECT_TIMEOUT => ['type' => ['number', 'null'], 'minimum' => 0, 'description' => 'Maximum duration in seconds to wait for the initial connection.'], self::KEY_MAX_REDIRECTS => ['type' => ['integer', 'null'], 'minimum' => 0, 'description' => 'Maximum redirects to follow. 0 disables, null is unspecified.']], 'additionalProperties' => \false];
}