lib/recurly/base.php
public static function _head($uri, $client = null)
  {
    if (is_null($client)) {
      $client = new Recurly_Client();
    }
    $response = $client->request(Recurly_Client::HEAD, $uri);
    $response->assertValidResponse();
    return $response->headers;
  }
public static function _head($uri, $client = null)
  {
    if (is_null($client)) {
      $client = new Recurly_Client();
    }
    $response = $client->request(Recurly_Client::HEAD, $uri);
    $response->assertValidResponse();
    return $response->headers;
  }
public static function _head ( $ uri , $ client = null ) { if ( is_null ( $ client ) ) { $ client = new Recurly_Client ( ) ; } $ response = $ client -> request ( Recurly_Client :: HEAD , $ uri ) ; $ response -> assertValidResponse ( ) ; return $ response -> headers ; }
Send a HEAD request to the URI, validate the response and return the headers.
@param string Resource URI, if not fully qualified, the base URL will be prepended
@param string Optional client for the request, useful for mocking the client
@throws Recurly_Error
Send a HEAD request to the URI validate the response and return the headers .