src/Neuron/Net/Response.php
public static function proxy ($request) {

		if (!$request instanceof Request) {
			$url = $request;

			$request = new Request ();
			$request->setUrl ($url);
			$request->setMethod (Request::METHOD_GET);
		}

		return Client::getInstance ()->process ($request);
	}
public static function proxy ($request) {

		if (!$request instanceof Request) {
			$url = $request;

			$request = new Request ();
			$request->setUrl ($url);
			$request->setMethod (Request::METHOD_GET);
		}

		return Client::getInstance ()->process ($request);
	}
public static function proxy ( $ request ) { if ( ! $ request instanceof Request ) { $ url = $ request ; $ request = new Request ( ) ; $ request -> setUrl ( $ url ) ; $ request -> setMethod ( Request :: METHOD_GET ) ; } return Client :: getInstance ( ) -> process ( $ request ) ; }
Proxy a request.
@param string|Request $request Url or Request object.
@return Response
Proxy a request .