Back to Joomla project (class list)

Class HttpFactory - list of methods

HTTP factory class.
Package: Joomla\CMS\Http
Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Http/HttpFactory.php
Project: Joomla

Method Summary

public static \Joomla\CMS\Http\Http
(mixed $options = [], mixed $adapters = null)

Method to create a JHttp instance.
Parameters
  • array|\ArrayAccess $options Client options array.
  • array|string $adapters Adapter (string) or queue of adapters (array) to use for communication.
Returns
  • \Joomla\CMS\Http\Http
Since
  • 3.0.0
-
  • \RuntimeException
Show source code of this method: getHttp Source Code

public static \Joomla\Http\TransportInterface|bool
(mixed $options = [], mixed $default = null)

Finds an available http transport object for communication
Parameters
  • array|\ArrayAccess $options Options for creating TransportInterface object
  • array|string $default Adapter (string) or queue of adapters (array) to use
Returns
  • \Joomla\Http\TransportInterface|bool Interface sub-class or boolean false if no adapters are available
Since
  • 3.0.0
Show source code of this method: getAvailableDriver Source Code

public static array
()

Get the http transport handlers
Returns
  • array An array of available transport handlers
Since
  • 3.0.0
Show source code of this method: getHttpTransports Source Code

Tags Summary

Since
3.0.0