HttplugFactory
in package
implements
MessageFactory, StreamFactory, UriFactory
since version 1.8, use Psr17Factory instead
Tags
Table of Contents
Interfaces
- MessageFactory
- StreamFactory
- UriFactory
Methods
- createRequest() : RequestInterface
- createResponse() : ResponseInterface
- createStream() : StreamInterface
- createUri() : UriInterface
Methods
createRequest()
public
createRequest(mixed $method, mixed $uri[, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : RequestInterface
Parameters
- $method : mixed
- $uri : mixed
- $headers : array<string|int, mixed> = []
- $body : mixed = null
- $protocolVersion : mixed = '1.1'
Return values
RequestInterfacecreateResponse()
public
createResponse([mixed $statusCode = 200 ][, mixed $reasonPhrase = null ][, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $version = '1.1' ]) : ResponseInterface
Parameters
- $statusCode : mixed = 200
- $reasonPhrase : mixed = null
- $headers : array<string|int, mixed> = []
- $body : mixed = null
- $version : mixed = '1.1'
Return values
ResponseInterfacecreateStream()
public
createStream([mixed $body = null ]) : StreamInterface
Parameters
- $body : mixed = null
Return values
StreamInterfacecreateUri()
public
createUri([mixed $uri = '' ]) : UriInterface
Parameters
- $uri : mixed = ''