Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 402 and 403]

(no description)

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

Defines 1 class

check_request:: (4 methods):
  setup()
  __construct()
  set_security()
  __invoke()


Class: check_request  - X-Ref

Class to check request against curl security helper.

setup(array $settings)   X-Ref
Initial setup for the request.

param: array $settings
return: callable

__construct(callable $next, array $settings)   X-Ref
Check request constructor.

param: callable $next The following handler
param: array $settings The settings of the request

set_security(curl_security_helper_base $securityhelper)   X-Ref
Set the security according to the settings.

param: curl_security_helper_base $securityhelper The security helper to use
return: void

__invoke(RequestInterface $request, array $options)   X-Ref
Curl security setup.

param: RequestInterface $request The request interface
param: array $options The options from the request
return: PromiseInterface