Overview
  • Namespace
  • Class

Namespaces

  • Http
    • Message
      • Authentication
      • Decorator
      • Encoding
        • Filter
      • Formatter
      • MessageFactory
      • StreamFactory
      • UriFactory

Traits

  • MessageDecorator
  • RequestDecorator
  • ResponseDecorator
  • StreamDecorator

Trait ResponseDecorator

Http\Message\Decorator\ResponseDecorator uses Http\Message\Decorator\MessageDecorator
Namespace: Http\Message\Decorator
Author: Márk Sági-Kazár mark.sagikazar@gmail.com
Located at Decorator/ResponseDecorator.php

Methods summary

public Http\Message\Decorator\ResponseDecorator
# withResponse( Psr\Http\Message\ResponseInterface $response )

Exchanges the underlying response with another.

Exchanges the underlying response with another.

Parameters

$response

Returns

Http\Message\Decorator\ResponseDecorator
public
# getStatusCode( )
public
# withStatus( $code, $reasonPhrase = '' )
public
# getReasonPhrase( )

Methods used from Http\Message\Decorator\MessageDecorator

getBody(), getHeader(), getHeaderLine(), getHeaders(), getMessage(), getProtocolVersion(), getResponse()(as getResponse()), hasHeader(), withAddedHeader(), withBody(), withHeader(), withProtocolVersion(), withoutHeader()

API documentation generated by ApiGen