Requests::get_default_options( boolean $multirequest = false ): array

Get the default options

Description

See also

Parameters

$multirequestbooleanoptional
Is this a multirequest?

Default:false

Return

array Default option values

Source

protected static function get_default_options($multirequest = false) {
	$defaults           = static::OPTION_DEFAULTS;
	$defaults['verify'] = self::$certificate_path;

	if ($multirequest !== false) {
		$defaults['complete'] = null;
	}

	return $defaults;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.