API15

JResponse: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JResponse}}
<nowiki>[</nowiki>[[Description:JResponse|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JResponse}}


===Defined in===
===Defined in===
Line 46: Line 43:
<source lang="php">jimport( 'joomla.environment.response' );</source>
<source lang="php">jimport( 'joomla.environment.response' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JResponse|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JResponse}}
</span>
{{SeeAlso:JResponse}}


===Examples===
===Examples===

Revision as of 13:24, 24 March 2017

{{subst:Description:JResponse}}

Defined in

libraries/joomla/environment/response.php

Methods

Method name Description
allowCache Set/get cachable state for the response
setHeader Set a header
getHeaders Return array of headers;
clearHeaders Clear headers
sendHeaders Send all headers
setBody Set body content
prependBody Prepend content to the body content
appendBody Append content to the body content
getBody Return the body content
toString Sends all headers prior to returning the string

Importing

jimport( 'joomla.environment.response' );


{{subst:SeeAlso:JResponse}}

Examples

<CodeExamplesForm />