Difference between revisions of "JResponse"
From Joomla! Documentation
m (clean up) |
m (preparing for archive only) |
||
Line 2: | Line 2: | ||
=={{JVer|11.1}} JResponse== | =={{JVer|11.1}} JResponse== | ||
===Description=== | ===Description=== | ||
− | + | ||
===Methods=== | ===Methods=== | ||
Line 67: | Line 67: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage Environment|Environment]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage Environment|Environment]] | ||
* [[API17:JResponse|Other versions of JResponse]] | * [[API17:JResponse|Other versions of JResponse]] | ||
− | + | ||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JResponse | category=JResponse | ||
− | + | namespace=CodeExample | |
category=ClassExample | category=ClassExample | ||
include=* | include=* |
Latest revision as of 22:36, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JResponse[edit]
Description[edit]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public static | allowCache | Set/get cachable state for the response. |
public static | appendBody | Append content to the body content. |
public static | clearHeaders | Clear headers. |
public static | getBody | Return the body content. |
public static | getHeaders | Return array of headers. |
public static | prependBody | Prepend content to the body content. |
public static | sendHeaders | Send all headers. |
public static | setBody | Set body content. |
public static | setHeader | Set a header. |
public static | toString | Sends all headers prior to returning the string. |
protected static | clientEncoding | Check, whether client supports compressed data. |
protected static | compress | Compress the data. |
- Defined in libraries/joomla/environment/response.php
Importing[edit]
jimport( 'joomla.environment.response' );
See also[edit]
- JResponse source code on BitBucket
- Subpackage Environment
- Other versions of JResponse
User contributed notes[edit]
Code Examples[edit]