[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/laminas/laminas-diactoros/src/ -> Response.php (summary)

(no description)

Copyright: https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
License: https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
File Size: 200 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Response:: (5 methods):
  __construct()
  getStatusCode()
  getReasonPhrase()
  withStatus()
  setStatusCode()


Class: Response  - X-Ref

HTTP response encapsulation.

Responses are considered immutable; all methods that might change state are
implemented such that they retain the internal state of the current
message and return a new instance that contains the changed state.
__construct($body = 'php:)   X-Ref

param: string|resource|StreamInterface $body Stream identifier and/or actual stream resource
param: int $status Status code for the response, if any.
param: array $headers Headers for the response, if any.

getStatusCode()   X-Ref
{@inheritdoc}


getReasonPhrase()   X-Ref
{@inheritdoc}


withStatus($code, $reasonPhrase = '')   X-Ref
{@inheritdoc}


setStatusCode($code, $reasonPhrase = '')   X-Ref
Set a valid status code.

param: int $code
param: string $reasonPhrase



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer