Documentation

DiactorosMessageFactory
in package
implements MessageFactory

FinalYes

Creates Diactoros messages.

This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory

Tags
author

GeLo geloen.eric@gmail.com

Table of Contents

Interfaces

MessageFactory

Properties

$streamFactory  : DiactorosStreamFactory

Methods

__construct()  : mixed
createRequest()  : mixed
createResponse()  : mixed

Properties

Methods

createRequest()

public createRequest(mixed $method, mixed $uri[, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : mixed
Parameters
$method : mixed
$uri : mixed
$headers : array<string|int, mixed> = []
$body : mixed = null
$protocolVersion : mixed = '1.1'

createResponse()

public createResponse([mixed $statusCode = 200 ][, mixed $reasonPhrase = null ][, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : mixed
Parameters
$statusCode : mixed = 200
$reasonPhrase : mixed = null
$headers : array<string|int, mixed> = []
$body : mixed = null
$protocolVersion : mixed = '1.1'

        
On this page

Search results