ResponseData
final class \
This class is used to collect response data such as protocol version, status code, reason phrase and headers to be able to set them in the response object later. The methods of the class are intentionally inspired by the PSR-7 Psr\Http\Message\ResponseInterface.
Note this data attribute has been created since central FE rendering related services like ContentObjectRenderer can not deal with "additional" content data such as HTTP headers or assets from content elements. The goal is to make ContentObjectRenderer and other parts of the framework aware of this in the future. This will obsolete or at least change this attribute again.
Internal
Strictly internal! This is likely to at least change or vanish again.
Table of Contents
Methods
- getHeaders() : array
- getProtocolVersion() : string
- getReasonPhrase() : string
- getStatusCode() : int
- setHeader() : void
- setProtocolVersion() : void
- setReasonPhrase() : void
- setStatusCode() : void
Methods
getHeaders()
public
getHeaders() : array
Return values
arraygetProtocolVersion()
public
getProtocolVersion() : string
Tags
Return values
stringgetReasonPhrase()
public
getReasonPhrase() : string
Tags
Return values
stringgetStatusCode()
public
getStatusCode() : int
Tags
Return values
intsetHeader()
public
setHeader(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
setProtocolVersion()
public
setProtocolVersion(string $protocolVersion) : void
Parameters
- $protocolVersion : string
setReasonPhrase()
public
setReasonPhrase(string $reasonPhrase) : void
Parameters
- $reasonPhrase : string
setStatusCode()
public
setStatusCode(int $statusCode) : void
Parameters
- $statusCode : int