\Pluf_HTTP_Response_CommandPassThru

Special response object to output the return value of a command.

You need to use escapeshellarg() and escapeshellcmd() to provide a "clean" command. The Content-Length will not be set as it is not possible to predict it.

Summary

Methods
Properties
Constants
__construct()
render()
outputHeaders()
hashCode()
$content
$headers
$status_code
$cookies
$status_code_list
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$content

$content : 

Content of the response.

Type

$headers

$headers : 

Array of the headers to add.

For example $this->headers['Content-Type'] = 'text/html; charset=utf-8';

Type

$status_code

$status_code : 

Status code of the answer.

Type

$cookies

$cookies : 

Cookies to send.

$this->cookies['my_cookie'] = 'content of the cookie';

Type

$status_code_list

$status_code_list : 

Status code list.

Type

Methods

__construct()

__construct(  $command,   $mimetype = null) 

The command argument must be a safe string!

Parameters

$command
$mimetype

render()

render(  $output_body = true) 

Render a response object.

Parameters

$output_body

outputHeaders()

outputHeaders() 

Output headers.

hashCode()

hashCode() 

Return hash code of the object