Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core\http_client Class Reference

Guzzle Integration for Moodle. More...

Inheritance diagram for core\http_client:

Public Member Functions

 __construct (array $config=[])
 

Protected Member Functions

 get_handlers (array $settings)
 Get the handler stack according to the settings/options from client.
 
 get_options (array $settings)
 Get the custom options and handlers for guzzle integration in moodle.
 
 get_proxy (array $settings)
 Get the proxy server identified.
 
 setup_proxy (array $settings)
 Get the proxy configuration.
 

Detailed Description

Guzzle Integration for Moodle.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_handlers()

core\http_client::get_handlers ( array $settings)
protected

Get the handler stack according to the settings/options from client.

Parameters
array$settingsThe settings or options from client.
Return values
HandlerStack

◆ get_options()

core\http_client::get_options ( array $settings)
protected

Get the custom options and handlers for guzzle integration in moodle.

Parameters
array$settingsThe settings or options from client.
Return values
array

◆ get_proxy()

core\http_client::get_proxy ( array $settings)
protected

Get the proxy server identified.

Parameters
array$settingsThe incoming settings.
Return values
stringThe URI for the Proxy Server

◆ setup_proxy()

core\http_client::setup_proxy ( array $settings)
protected

Get the proxy configuration.

See also
{https://docs.guzzlephp.org/en/stable/request-options.html#proxy}
Parameters
array$settingsThe incoming settings.
Return values
arrayThe proxy settings

The documentation for this class was generated from the following file: