[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/laminas/laminas-diactoros/src/Response/ -> XmlResponse.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: 82 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

XmlResponse:: (2 methods):
  __construct()
  createBody()


Class: XmlResponse  - X-Ref

XML response.

Allows creating a response by passing an XML string to the constructor; by default,
sets a status code of 200 and sets the Content-Type header to application/xml.
__construct($xml,int $status = 200,array $headers = [])   X-Ref
Create an XML response.

Produces an XML response with a Content-Type of application/xml and a default
status of 200.

param: string|StreamInterface $xml String or stream for the message body.
param: int $status Integer status code for the response; 200 by default.
param: array $headers Array of headers to use at initialization.

createBody($xml)   X-Ref
Create the message body.

param: string|StreamInterface $xml



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