phpDocumentor

RedirectHttpControllerResponse extends HttpControllerResponse
in package

Class RedirectHttpControllerResponse

Tags
category

System

subpackage

ValueObjects

extends

HttpControllerResponse

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

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

getHeaders()

Returns the response headers array.

public getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results