7 require_once 
'Auth/Yadis/XRDS.php';
 
    8 require_once 
'Auth/Yadis/XRI.php';
 
   13         $this->fetcher = $fetcher;
 
   14         $this->proxy_url = $proxy_url;
 
   15         if (!$this->proxy_url) {
 
   24         $hxri = $this->proxy_url . $qxri;
 
   26                       '_xrd_r' => 
'application/xrds+xml' 
   30             $args[
'_xrd_t'] = $service_type;
 
   33             $args[
'_xrd_r'] .= 
';sep=false';
 
   40     function query($xri, $service_types, $filters = array())
 
   44         foreach ($service_types as $service_type) {
 
   45             $url = $this->
queryURL($xri, $service_type);
 
   46             $response = $this->fetcher->get($url);
 
   47             if ($response->status != 200 and $response->status != 206) {
 
   57             if ($canonicalID === 
false) {
 
   61             $some_services = $xrds->services($filters);
 
   62             $services = array_merge($services, $some_services);
 
   68         return array($canonicalID, $services);