Set schemes WireHttp is allowed to access (default=[http, https])
Usage
// basic usage
$http->setAllowSchemes($schemes);
// usage with all arguments
$http->setAllowSchemes($schemes, bool $replace = false);
Arguments
Name | Type(s) | Description |
---|---|---|
schemes | array, string | Array of schemes or space-separated string of schemes |
replace (optional) | bool | Specify true to replace any existing schemes already allowed (default=false) |
Return value
$this
Object instance it was called from (method supports fluent interface).
API reference based on ProcessWire core version 3.0.236