lithium\net\http\Service::head PHP Method

head() public method

Send HEAD request.
public head ( string $path = null, array $data = [], array $options = [] ) : string
$path string
$data array
$options array
return string
    public function head($path = null, $data = array(), array $options = array())
    {
        $defaults = array('return' => 'headers', 'type' => false);
        return $this->send(__FUNCTION__, $path, $data, $options + $defaults);
    }

Usage Example

Example #1
0
 public function testHeadQueryString()
 {
     $http = new Service($this->_testConfig);
     $expected = array('foo' => 'bar');
     $result = $http->head('/', $expected);
     $this->assertEqual($expected, $http->last->request->query);
 }
All Usage Examples Of lithium\net\http\Service::head