Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401]

(no description)

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

Defines 1 class

http_client:: (2 methods):
  __construct()
  request()


Class: http_client  - X-Ref

An implementation of IHTTPClient delegating to a curl object, for use with the lib/lti1p3 library code.

__construct(\curl $curlclient)   X-Ref
Constructor.

param: \curl $curlclient a curl client instance.

request(string $method, string $url, array $options)   X-Ref
Make an HTTP request to the given URL.

return: IHttpResponse the response
param: string $method the HTTP method to use.
param: string $url the URL to send the request to.
param: array $options an array of request options, mainly used to set headers and body.