IOutput

interface OCP\AppFramework\Http\IOutput
Very thin wrapper class to make output testable
Implemented by:OC\AppFramework\Http\Output
Source:lib/public/AppFramework/Http/IOutput.php#34

Methods

public OCP\AppFramework\Http\IOutput::setOutput($out)
Source:

lib/public/AppFramework/Http/IOutput.php#40

Parameters:
  • $out (string)
Since:

8.1.0

public OCP\AppFramework\Http\IOutput::setReadfile($path)
Source:

lib/public/AppFramework/Http/IOutput.php#48

Parameters:
  • $path (string | resource) or file handle
Returns:

bool false if an error occurred

Since:

8.1.0

public OCP\AppFramework\Http\IOutput::setHeader($header)
Source:

lib/public/AppFramework/Http/IOutput.php#54

Parameters:
  • $header (string)
Since:

8.1.0

public OCP\AppFramework\Http\IOutput::getHttpResponseCode()
Source:lib/public/AppFramework/Http/IOutput.php#60
Returns:int returns the current http response code
Since:8.1.0
public OCP\AppFramework\Http\IOutput::setHttpResponseCode($code)
Source:

lib/public/AppFramework/Http/IOutput.php#66

Parameters:
  • $code (int) sets the http status code
Since:

8.1.0

public OCP\AppFramework\Http\IOutput::setCookie($name, $value, $expire, $path, $domain, $secure, $httpOnly, $sameSite=Lax)
Source:

lib/public/AppFramework/Http/IOutput.php#79

Parameters:
  • $name (string)
  • $value (string)
  • $expire (int)
  • $path (string)
  • $domain (string)
  • $secure (bool)
  • $httpOnly (bool)
  • $sameSite (string) (added in 20)
Since:

8.1.0