original_string: function xrds($force=null)
      {
          if($force) {
              echo $this->xrdsContent();
              die();
          } elseif($force === false) {
              header('X-XRDS-Location: '. $this->xrdsLocation);
              return;
          }
          
          if (isset($_GET['xrds'])
              || (isset($_SERVER['HTTP_ACCEPT']) &&  strpos($_SERVER['HTTP_ACCEPT'], 'application/xrds+xml') !== false)
          ) {
              header('Content-Type: application/xrds+xml');
              echo $this->xrdsContent();
              die();
          }
          
          header('X-XRDS-Location: ' . $this->xrdsLocation);
      }
code: function xrds($force=null)
      {
          if($force) {
              echo $this->xrdsContent();
              die();
          } elseif($force === false) {
              header('X-XRDS-Location: '. $this->xrdsLocation);
              return;
          }
          
          if (isset($_GET['xrds'])
              || (isset($_SERVER['HTTP_ACCEPT']) &&  strpos($_SERVER['HTTP_ACCEPT'], 'application/xrds+xml') !== false)
          ) {
              header('Content-Type: application/xrds+xml');
              echo $this->xrdsContent();
              die();
          }
          
          header('X-XRDS-Location: ' . $this->xrdsLocation);
      }
code_tokens: function xrds ( $ force = null ) { if ( $ force ) { echo $ this -> xrdsContent ( ) ; die ( ) ; } elseif ( $ force === false ) { header ( 'X-XRDS-Location: ' . $ this -> xrdsLocation ) ; return ; } if ( isset ( $ _GET [ 'xrds' ] ) || ( isset ( $ _SERVER [ 'HTTP_ACCEPT' ] ) && strpos ( $ _SERVER [ 'HTTP_ACCEPT' ] , 'application/xrds+xml' ) !== false ) ) { header ( 'Content-Type: application/xrds+xml' ) ; echo $ this -> xrdsContent ( ) ; die ( ) ; } header ( 'X-XRDS-Location: ' . $ this -> xrdsLocation ) ; }
docstring: Displays an XRDS document, or redirects to it.
  By default, it detects whether it should display or redirect automatically.
  @param bool|null $force When true, always display the document, when false always redirect.
docstring_tokens: Displays an XRDS document or redirects to it . By default it detects whether it should display or redirect automatically .