\Phile\HttpResponseFactory

Creates PSR-7 responses

Summary

Methods
Properties
Constants
createResponse()
createHtmlResponse()
createRedirectResponse()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createResponse()

createResponse(  $code = 200)

{@inheritDoc}

Parameters

$code

createHtmlResponse()

createHtmlResponse(\Phile\Http\string  $body,\Phile\Http\int  $code = 200)

Creates PSR-7 HTML response

Parameters

\Phile\Http\string $body
\Phile\Http\int $code

createRedirectResponse()

createRedirectResponse(\Phile\Http\string  $url,\Phile\Http\int  $code = 302)

Creates PSR-7 redirect response

Parameters

\Phile\Http\string $url
\Phile\Http\int $code