Class JMediawikiHttp

Description

HTTP client class for connecting to a MediaWiki instance.

  • since: 12.3

Located in /libraries/joomla/mediawiki/http.php (line 19)

JHttp
   |
   --JMediawikiHttp
Method Summary
 JMediawikiHttp __construct ([JRegistry $options = null], [JHttpTransport $transport = null])
 JHttpResponse get (string $url, [array $headers = null])
 JHttpResponse post (string $url, mixed $data, [array $headers = null])
Variables

Inherited Variables

Inherited from JHttp

JHttp::$options
JHttp::$transport
Methods
Constructor __construct (line 29)

Constructor.

  • since: 12.3
  • access: public
JMediawikiHttp __construct ([JRegistry $options = null], [JHttpTransport $transport = null])

Redefinition of:
JHttp::__construct()
Constructor.
get (line 52)

Method to send the GET command to the server.

  • since: 12.3
  • access: public
JHttpResponse get (string $url, [array $headers = null])
  • string $url: Path to the resource.
  • array $headers: An array of name-value pairs to include in the header of the request.

Redefinition of:
JHttp::get()
Method to send the GET command to the server.
post (line 79)

Method to send the POST command to the server.

  • since: 12.3
  • access: public
JHttpResponse post (string $url, mixed $data, [array $headers = null])
  • string $url: Path to the resource.
  • mixed $data: Either an associative array or a string to be sent with the request.
  • array $headers: An array of name-value pairs to include in the header of the request.

Redefinition of:
JHttp::post()
Method to send the POST command to the server.

Inherited Methods

Inherited From JHttp

 JHttp::__construct()
 JHttp::delete()
 JHttp::get()
 JHttp::getOption()
 JHttp::head()
 JHttp::options()
 JHttp::patch()
 JHttp::post()
 JHttp::put()
 JHttp::setOption()
 JHttp::trace()

Documentation generated on Tue, 19 Nov 2013 15:04:55 +0100 by phpDocumentor 1.4.3