Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 190 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

http_client:: (5 methods):
  __construct()
  get_options()
  get_handlers()
  setup_proxy()
  get_proxy()


Class: http_client  - X-Ref

Guzzle Integration for Moodle.

__construct(array $config = [])   X-Ref
No description

get_options(array $settings)   X-Ref
Get the custom options and handlers for guzzle integration in moodle.

param: array $settings The settings or options from client.
return: array

get_handlers(array $settings)   X-Ref
Get the handler stack according to the settings/options from client.

param: array $settings The settings or options from client.
return: HandlerStack

setup_proxy(array $settings)   X-Ref
Get the proxy configuration.

param: array $settings The incoming settings.
return: array The proxy settings

get_proxy(array $settings)   X-Ref
Get the proxy server identified.

param: array $settings The incoming settings.
return: string The URI for the Proxy Server