This is automatic generated document for things in Swow\Psr7\Message\Psr17Factory class

Class Psr17Factory

Methods

Method createRequest

public function createRequest ( string $method , mixed $uri ) : Request

Method createResponse

public function createResponse ( int $code , string $reasonPhrase ) : Response

Method createServerConnection

public function createServerConnection ( Server $server ) : ServerConnection

Method createServerRequest

public function createServerRequest ( string $method , mixed $uri , array<string, string> $serverParams ) : ServerRequest

Method createStream

public function createStream ( string $content ) : BufferStream

Method createStreamFromBuffer

public function createStreamFromBuffer ( Buffer $buffer ) : BufferStream

Method createStreamFromFile

public function createStreamFromFile ( string $filename , string $mode ) : PhpStream

Method createStreamFromResource

public function createStreamFromResource ( $resource ) : PhpStream

Method createUploadedFile

public function createUploadedFile ( StreamInterface $stream , ?int $size , int $error , ?string $clientFilename , ?string $clientMediaType ) : UploadedFile

Method createUri

public function createUri ( string $uri ) : Uri

Copyright 2022 the Swow contributors