WireHttp::setAllowSchemes() method
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
$thisObject instance it was called from (method supports fluent interface).
API reference based on ProcessWire core version 3.0.252