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: 49 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CurlHandler:: (2 methods):
  __construct()
  __invoke()


Class: CurlHandler  - X-Ref

HTTP handler that uses cURL easy handles as a transport layer.

When using the CurlHandler, custom curl options can be specified as an
associative array of curl option constants mapping to values in the
**curl** key of the "client" key of the request.

__construct(array $options = [])   X-Ref
Accepts an associative array of options:

- handle_factory: Optional curl factory used to create cURL handles.

param: array{handle_factory?: ?CurlFactoryInterface} $options Array of options to use with the handler

__invoke(RequestInterface $request, array $options)   X-Ref
No description