OpenSwoole\Core\Psr\Response->withStatus

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\Core\Psr\Response->withStatus()

Parameters

code

The 3-digit integer result code to set.

reasonPhrase

The reason phrase to use with the provided status code

Return

Description

Set the response status code.

Last updated on September 23, 2022