Open Journal Systems  3.3.0
Http\Message\Formatter Interface Reference
Inheritance diagram for Http\Message\Formatter:
Http\Message\Formatter\CurlCommandFormatter Http\Message\Formatter\FullHttpMessageFormatter Http\Message\Formatter\SimpleFormatter

Public Member Functions

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

Detailed Description

Formats a request and/or a response as a string.

Author
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 13 of file Formatter.php.

Member Function Documentation

◆ formatRequest()

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

Formats a request.

Parameters
RequestInterface$request
Returns
string

Implemented in Http\Message\Formatter\FullHttpMessageFormatter, Http\Message\Formatter\SimpleFormatter, and Http\Message\Formatter\CurlCommandFormatter.

◆ formatResponse()

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

Formats a response.

Parameters
ResponseInterface$response
Returns
string

Implemented in Http\Message\Formatter\CurlCommandFormatter, Http\Message\Formatter\FullHttpMessageFormatter, and Http\Message\Formatter\SimpleFormatter.


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