Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\Http\Message\ServerRequestFactory

ServerRequestFactory class

Implements:

Psr\Http\Message\ServerRequestFactoryInterface

Methods

Name Description
create Function create
Create a new server request.  
createFromArray Function createFromArray
Create a instance of ServerRequestInterface object  
createServerRequest Function createServerRequest
Create a new server request.  

ServerRequestFactory::create

Description

public static create (string $method, \UriInterface|string $uri, array $params)

Function create Create a new server request.

Note that server-params are taken precisely as given - no parsing/processing
of the given values is performed, and, in particular, no attempt is made to
determine the HTTP method or URI, which must be provided explicitly.

Parameters

Return Values

\ServerRequestInterface


ServerRequestFactory::createFromArray

Description

public static createFromArray (array $params)

Function createFromArray Create a instance of ServerRequestInterface object

Parameters

Return Values

\ServerRequestInterface


ServerRequestFactory::createServerRequest

Description

public createServerRequest (string $method, \UriInterface|string $uri, array $serverParams)

Function createServerRequest Create a new server request.

Note that server-params are taken precisely as given - no parsing/processing
of the given values is performed, and, in particular, no attempt is made to
determine the HTTP method or URI, which must be provided explicitly.

Parameters

Return Values

\ServerRequestInterface