NukeViet\Http\Http::_dispatch_request PHP Method

_dispatch_request() private method

private _dispatch_request ( mixed $url, mixed $args )
$url mixed
$args mixed
    private function _dispatch_request($url, $args)
    {
        static $transports = array();
        $class = $this->_get_first_available_transport($args, $url);
        if (!$class) {
            $this->set_error(4);
            return false;
        }
        // Transport claims to support request, instantiate it and give it a whirl.
        if (empty($transports[$class])) {
            $transports[$class] = new $class();
        }
        $response = $transports[$class]->request($url, $args);
        return $response;
    }