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

NameType(s)Description
$schemesarray 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).


$http methods and properties

API reference based on ProcessWire core version 3.0.251