src/NetDriver/AbstractNetDriver.php
public function fireOnSendingRequest(HttpRequest $request)
    {
        $event = EnumEvent::REQUEST;
        if (isset($this->listeners[$event]) && is_array($this->listeners[$event]))
        {
            foreach($this->listeners[$event] as $l)
            {
                $ret = $l($request);
                if ($ret instanceof HttpRequest){
                    $request = $ret;
                }
            }
        }
        return $request;
    }
public function fireOnSendingRequest(HttpRequest $request)
    {
        $event = EnumEvent::REQUEST;
        if (isset($this->listeners[$event]) && is_array($this->listeners[$event]))
        {
            foreach($this->listeners[$event] as $l)
            {
                $ret = $l($request);
                if ($ret instanceof HttpRequest){
                    $request = $ret;
                }
            }
        }
        return $request;
    }
public function fireOnSendingRequest ( HttpRequest $ request ) { $ event = EnumEvent :: REQUEST ; if ( isset ( $ this -> listeners [ $ event ] ) && is_array ( $ this -> listeners [ $ event ] ) ) { foreach ( $ this -> listeners [ $ event ] as $ l ) { $ ret = $ l ( $ request ) ; if ( $ ret instanceof HttpRequest ) { $ request = $ ret ; } } } return $ request ; }
Fire event before sending HTTP request

@param HttpRequest $request

@return HttpRequest
Fire event before sending HTTP request