RedirectHttpControllerResponse
extends HttpControllerResponse
in package
Class RedirectHttpControllerResponse
Tags
Table of Contents
- $httpBody : string
- $httpHeadersArray : array<string|int, mixed>
- __construct() : mixed
- Initializes the redirect http controller response.
- getBody() : string
- Returns the response body string.
- getHeaders() : array<string|int, mixed>
- Returns the response headers array.
Properties
$httpBody
protected
string
$httpBody
$httpHeadersArray
protected
array<string|int, mixed>
$httpHeadersArray
= []
Methods
__construct()
Initializes the redirect http controller response.
public
__construct(string $location[, bool $movedPermanently = false ]) : mixed
Parameters
- $location : string
-
Location to redirect.
- $movedPermanently : bool = false
-
Add status code 301 (Moved Permanently) to the http header.
Return values
mixed —getBody()
Returns the response body string.
public
getBody() : string
Return values
string —getHeaders()
Returns the response headers array.
public
getHeaders() : array<string|int, mixed>