Requests::set_defaults( string $url, array $headers, array|null $data, string $type, array $options ): array

In this article

Set the default values

Parameters

$urlstringrequired
URL to request
$headersarrayrequired
Extra headers to send with the request
$dataarray|nullrequired
Data to send either as a query string for GET/HEAD requests, or in the body for POST requests
$typestringrequired
HTTP request type
$optionsarrayrequired
Options for the request

Return

array $options

Source

User Contributed Notes

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