OC_Response

class OC_Response
Source:lib/private/legacy/OC_Response.php#31

Methods

public static OC_Response::setContentDispositionHeader($filename, $type=attachment)
Sets the content disposition header (with possible workarounds)
Source:

lib/private/legacy/OC_Response.php#37

Parameters:
  • $filename (string) file name
  • $type (string) disposition type, either ‘attachment’ or ‘inline’
public static OC_Response::setContentLengthHeader($length)
Sets the content length header (with possible workarounds)
Source:

lib/private/legacy/OC_Response.php#55

Parameters:
  • $length (string | int | float) Length to be sent
public static OC_Response::addSecurityHeaders()
This function adds some security related headers to all requests served via base.php
The implementation of this function has to happen here to ensure that all third-party
components (e.g. SabreDAV) also benefit from this headers.
Source:lib/private/legacy/OC_Response.php#77