[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/http/src/ -> HttpFactory.php (summary)

Part of the Joomla Framework Http Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 137 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HttpFactory:: (3 methods):
  getHttp()
  getAvailableDriver()
  getHttpTransports()


Class: HttpFactory  - X-Ref

HTTP factory class.

getHttp($options = [], $adapters = null)   X-Ref
Method to create an Http instance.

param: array|\ArrayAccess  $options   Client options array.
param: array|string        $adapters  Adapter (string) or queue of adapters (array) to use for communication.
return: Http

getAvailableDriver($options = [], $default = null)   X-Ref
Finds an available TransportInterface object for communication

param: array|\ArrayAccess  $options  Options for creating TransportInterface object
param: array|string        $default  Adapter (string) or queue of adapters (array) to use
return: TransportInterface|boolean  Interface sub-class or boolean false if no adapters are available

getHttpTransports()   X-Ref
Get the HTTP transport handlers

return: string[]  An array of available transport handler types



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer