protected function modifyContainer($name, $method, $headers = array(), $qstring = '') {
    $url = $this->url . '/' . rawurlencode($name) . $qstring;
    $headers['X-Auth-Token'] = $this->token;

    $client = \HPCloud\Transport::instance();
    $response = $client->doRequest($url, $method, $headers);

    return $response;
  }
protected function modifyContainer($name, $method, $headers = array(), $qstring = '') {
    $url = $this->url . '/' . rawurlencode($name) . $qstring;
    $headers['X-Auth-Token'] = $this->token;

    $client = \HPCloud\Transport::instance();
    $response = $client->doRequest($url, $method, $headers);

    return $response;
  }
protected function modifyContainer ( $ name , $ method , $ headers = array ( ) , $ qstring = '' ) { $ url = $ this -> url . '/' . rawurlencode ( $ name ) . $ qstring ; $ headers [ 'X-Auth-Token' ] = $ this -> token ; $ client = \ HPCloud \ Transport :: instance ( ) ; $ response = $ client -> doRequest ( $ url , $ method , $ headers ) ; return $ response ; }
Run the given method on the given container.

Checks to see if the expected result is returned.

@param string $name
The name of the container.
@param string $method
The appropriate HTTP verb.
@param int $expects
The expected HTTP code.
Run the given method on the given container .