public function fireOnReceivedResponse(HttpResponse $response)
    {
        $event = EnumEvent::RESPONSE;
        if (isset($this->listeners[$event]) && is_array($this->listeners[$event]))
        {
            foreach($this->listeners[$event] as $l)
            {
                $l($response);
            }
        }
    }
public function fireOnReceivedResponse(HttpResponse $response)
    {
        $event = EnumEvent::RESPONSE;
        if (isset($this->listeners[$event]) && is_array($this->listeners[$event]))
        {
            foreach($this->listeners[$event] as $l)
            {
                $l($response);
            }
        }
    }
public function fireOnReceivedResponse ( HttpResponse $ response ) { $ event = EnumEvent :: RESPONSE ; if ( isset ( $ this -> listeners [ $ event ] ) && is_array ( $ this -> listeners [ $ event ] ) ) { foreach ( $ this -> listeners [ $ event ] as $ l ) { $ l ( $ response ) ; } } }
Fire event after received HTTP response

@param HttpResponse $response
Fire event after received HTTP response