Welcome Guest, Not a member yet? Register   Sign In
Need a little more info using Filters 'After'
#4

A couple of things to help out:

1. Docs for the Response object
2. the Response class itself

PHP Code:
public function after(RequestInterface $requestResponseInterface $response)
{
   
$body $response->getBody();
    
// Do stuff to body, set headers, whatever.
    
return $response->setBody($body);

Reply


Messages In This Thread
RE: Need a little more info using Filters 'After' - by kilishan - 11-15-2019, 09:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB