Documentation

HttplugFactory
in package
implements MessageFactory, StreamFactory, UriFactory

since version 1.8, use Psr17Factory instead

Tags
author

Tobias Nyholm tobias.nyholm@gmail.com

author

Martijn van der Ven martijn@vanderven.se

final

This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md

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
RequestInterface

createResponse()

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
ResponseInterface

        
On this page

Search results