public function head($uri = null, $expectedStatus = null)
    {
        $this->setMethod('HEAD');
        $this->setUri($uri);
        if (!is_null($expectedStatus)) {
            $this->expectingStatusCode($expectedStatus);
        }

        return $this;
    }
public function head($uri = null, $expectedStatus = null)
    {
        $this->setMethod('HEAD');
        $this->setUri($uri);
        if (!is_null($expectedStatus)) {
            $this->expectingStatusCode($expectedStatus);
        }

        return $this;
    }
public function head ( $ uri = null , $ expectedStatus = null ) { $ this -> setMethod ( 'HEAD' ) ; $ this -> setUri ( $ uri ) ; if ( ! is_null ( $ expectedStatus ) ) { $ this -> expectingStatusCode ( $ expectedStatus ) ; } return $ this ; }
Set the HTTP method to HEAD and the uri if any.

Return $this for a fluent interface.

@param string|null $uri
@param integer|null $expectedStatus
@return $this
Set the HTTP method to HEAD and the uri if any .