API17

Difference between revisions of "JHttp"

From Joomla! Documentation

(Layout updates)
m (moving preparation)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|11.1}} JHttp==
 +
===Description===
 +
{{Description:JHttp}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JHttp|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHttp|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JHttp}}
 
===Defined in===
 
libraries/joomla/client/http.php
 
* see source code in [[jplatform:client/http.php|BitBucket]]
 
===Subpackage===
 
[[Subpackage Client/11.1|Client]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JHttp::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JHttp::__construct|__construct]]
 
|Constructor.  
 
|Constructor.  
 
|-
 
|-
|[[JHttp::__destruct/11.1|__destruct]]
+
|public
 +
|[[API17:JHttp::__destruct|__destruct]]
 
|Destructor.  
 
|Destructor.  
 
|-
 
|-
|[[JHttp::get/11.1|get]]
+
|public
 +
|[[API17:JHttp::get|get]]
 
|Method to send the GET command to the server.  
 
|Method to send the GET command to the server.  
 
|-
 
|-
|[[JHttp::head/11.1|head]]
+
|public
 +
|[[API17:JHttp::head|head]]
 
|Method to send the HEAD command to the server.  
 
|Method to send the HEAD command to the server.  
 
|-
 
|-
|[[JHttp::post/11.1|post]]
+
|public
 +
|[[API17:JHttp::post|post]]
 
|Method to send the POST command to the server.  
 
|Method to send the POST command to the server.  
 
|-
 
|-
|[[JHttp::_connect/11.1|_connect]]
+
|protected
 +
|[[API17:JHttp::_connect|_connect]]
 
|Method to connect to a server and get the resource.  
 
|Method to connect to a server and get the resource.  
 
|-
 
|-
|[[JHttp::_getResponseObject/11.1|_getResponseObject]]
+
|protected
 +
|[[API17:JHttp::_getResponseObject|_getResponseObject]]
 
|Method to get a response object from a server response.  
 
|Method to get a response object from a server response.  
 
|-
 
|-
|[[JHttp::_sendRequest/11.1|_sendRequest]]
+
|protected
 +
|[[API17:JHttp::_sendRequest|_sendRequest]]
 
|Send a command to the server and validate an expected response.  
 
|Send a command to the server and validate an expected response.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/client/http.php
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.client.http' );</source>
 
<source lang="php">jimport( 'joomla.client.http' );</source>
 
===See also===
 
===See also===
* JHttp source code in [[jplatform:client/http.php|BitBucket]]
+
* {{JVer|11.1}} '''JHttp source code''' on [[jplatform:client/http.php|BitBucket]]
* [[JHttp|Other versions of this class]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Client|Client]]
 +
* [[API17:JHttp|Other versions of JHttp]]
 
{{SeeAlso:JHttp}}
 
{{SeeAlso:JHttp}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHttp|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHttp|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 59: Line 65:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JHttp]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:57, 11 May 2013

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.

Joomla 11.1 JHttp[edit]

Description[edit]

Template:Description:JHttp [Edit Descripton]

Methods[edit]

Visibility Method name Description
public __construct Constructor.
public __destruct Destructor.
public get Method to send the GET command to the server.
public head Method to send the HEAD command to the server.
public post Method to send the POST command to the server.
protected _connect Method to connect to a server and get the resource.
protected _getResponseObject Method to get a response object from a server response.
protected _sendRequest Send a command to the server and validate an expected response.
  • Defined in libraries/joomla/client/http.php

Importing[edit]

jimport( 'joomla.client.http' );

See also[edit]

Template:SeeAlso:JHttp [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />