WordPress\AiClientDependencies\Nyholm\Psr7\Factory
Psr17Factory::createResponse
Метод класса: Psr17Factory{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Psr17Factory = new Psr17Factory(); $Psr17Factory->createResponse( $code, $reasonPhrase ): ResponseInterface;
- $code(int)
- .
По умолчанию:200 - $reasonPhrase(строка)
- .
По умолчанию:''
Код Psr17Factory::createResponse() Psr17Factory::createResponse WP 7.1.4
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
{
if (2 > \func_num_args()) {
// This will make the Response class to use a custom reasonPhrase
$reasonPhrase = null;
}
return new Response($code, [], null, '1.1', $reasonPhrase);
}