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: 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: 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.phpThe implementation of this function has to happen here to ensure that all third-partycomponents (e.g. SabreDAV) also benefit from this headers.
Source: lib/private/legacy/OC_Response.php#77