PsrHttpFactory
class PsrHttpFactory implements ServerRequestFactoryInterface, RequestFactoryInterface, ResponseFactoryInterface, UriFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface (View source)
Traits
Properties
protected UriFactoryInterface | $uriFactory | from ServerRequestFactoryTrait | |
protected string | $defaultUserAgent | from ServerRequestFactoryTrait | |
protected string | $scriptPath | from ServerRequestFactoryTrait | |
protected string | $defaultHttpVersion | from ServerRequestFactoryTrait |
Methods
__construct(UriFactoryInterface $uriFactory, string $defaultUserAgent = 'Flow/' . FLOW_VERSION_BRANCH, string $scriptPath = 'index.php', string $defaultHttpVersion = '1.1')
ServerRequestFactory constructor.
ServerRequestInterface
createServerRequest(string $method, $uri, array $serverParams = [])
No description
ResponseInterface
createResponse(int $code = 200, string $reasonPhrase = '')
No description
from
ResponseFactoryTrait
StreamInterface
createStreamFromFile(string $filename, string $mode = 'r')
No description
from
StreamFactoryTrait
UploadedFileInterface
createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null)
No description
Details
__construct(UriFactoryInterface $uriFactory, string $defaultUserAgent = 'Flow/' . FLOW_VERSION_BRANCH, string $scriptPath = 'index.php', string $defaultHttpVersion = '1.1')
ServerRequestFactory constructor.
ServerRequestInterface
createServerRequest(string $method, $uri, array $serverParams = [])
No description
RequestInterface
createRequest(string $method, $uri)
No description
ResponseInterface
createResponse(int $code = 200, string $reasonPhrase = '')
No description
UriInterface
createUri(string $uri = '')
No description
StreamInterface
createStream(string $content = '')
No description
StreamInterface
createStreamFromFile(string $filename, string $mode = 'r')
No description
StreamInterface
createStreamFromResource($resource)
No description
UploadedFileInterface
createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null)
No description