Unirest\Request::options PHP Method

options() public static method

Send a OPTIONS request to a URL
public static options ( string $url, array $headers = [], mixed $parameters = null, string $username = null, string $password = null ) : unirest\Response
$url string URL to send the OPTIONS request to
$headers array additional headers to send
$parameters mixed parameters to send in the querystring
$username string Basic Authentication username
$password string Basic Authentication password
return unirest\Response
    public static function options($url, $headers = array(), $parameters = null, $username = null, $password = null)
    {
        return self::send(Method::OPTIONS, $url, $parameters, $headers, $username, $password);
    }