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

Defines 1 class


Class: HttpFactory  - X-Ref

Implements all of the PSR-17 interfaces.

Note: in consuming code it is recommended to require the implemented interfaces
and inject the instance of this class multiple times.
createUploadedFile(StreamInterface $stream,int $size = null,int $error = \UPLOAD_ERR_OK,string $clientFilename = null,string $clientMediaType = null)   X-Ref
No description

createStream(string $content = '')   X-Ref
No description

createStreamFromFile(string $file, string $mode = 'r')   X-Ref
No description

createStreamFromResource($resource)   X-Ref
No description

createServerRequest(string $method, $uri, array $serverParams = [])   X-Ref
No description

createResponse(int $code = 200, string $reasonPhrase = '')   X-Ref
No description

createRequest(string $method, $uri)   X-Ref
No description

createUri(string $uri = '')   X-Ref
No description