Open Journal Systems  3.3.0
Http\Message\Formatter\SimpleFormatter Class Reference
Inheritance diagram for Http\Message\Formatter\SimpleFormatter:
Http\Message\Formatter

Public Member Functions

 formatRequest (RequestInterface $request)
 
 formatResponse (ResponseInterface $response)
 

Detailed Description

Normalize a request or a response into a string or an array.

Author
Joel Wurtz joel..nosp@m.wurt.nosp@m.z@gma.nosp@m.il.c.nosp@m.om
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 15 of file SimpleFormatter.php.

Member Function Documentation

◆ formatRequest()

Http\Message\Formatter\SimpleFormatter::formatRequest ( RequestInterface  $request)

{Formats a request.

Parameters
RequestInterface$request
Returns
string
}

Implements Http\Message\Formatter.

Definition at line 20 of file SimpleFormatter.php.

References Psr\Http\Message\RequestInterface\getMethod(), Psr\Http\Message\MessageInterface\getProtocolVersion(), and Psr\Http\Message\RequestInterface\getUri().

◆ formatResponse()

Http\Message\Formatter\SimpleFormatter::formatResponse ( ResponseInterface  $response)

{Formats a response.

Parameters
ResponseInterface$response
Returns
string
}

Implements Http\Message\Formatter.

Definition at line 33 of file SimpleFormatter.php.


The documentation for this class was generated from the following file: