WordPress\AiClientDependencies\Psr\Http\Message

ResponseFactoryInterface{}interfaceWP 1.0

No Hooks.

Usage

$ResponseFactoryInterface = new ResponseFactoryInterface();
// use class methods

Methods

  1. public createResponse(int $code = 200, string $reasonPhrase = '')

ResponseFactoryInterface{} code WP 7.0

interface ResponseFactoryInterface
{
    /**
     * Create a new response.
     *
     * @param int $code HTTP status code; defaults to 200
     * @param string $reasonPhrase Reason phrase to associate with status code
     *     in generated response; if none is provided implementations MAY use
     *     the defaults as suggested in the HTTP specification.
     *
     * @return ResponseInterface
     */
    public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
}