\OCP\AppFramework\HttpIOutput

Very thin wrapper class to make output testable

Summary

Methods
Constants
setOutput()
setReadfile()
setHeader()
getHttpResponseCode()
setHttpResponseCode()
setCookie()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setOutput()

setOutput(string  $out) 

Parameters

string $out

setReadfile()

setReadfile(string  $path) : boolean

Parameters

string $path

Returns

boolean —

false if an error occurred

setHeader()

setHeader(string  $header) 

Parameters

string $header

getHttpResponseCode()

getHttpResponseCode() : integer

Returns

integer —

returns the current http response code

setHttpResponseCode()

setHttpResponseCode(integer  $code) 

Parameters

integer $code

sets the http status code

setCookie()

setCookie(string  $name, string  $value, integer  $expire, string  $path, string  $domain, boolean  $secure, boolean  $httpOnly) 

Parameters

string $name
string $value
integer $expire
string $path
string $domain
boolean $secure
boolean $httpOnly