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.137

Twitter updates

  • ProcessWire 3.0.146 on the dev branch contains about 22 commits with a combination of useful upgrades and issue report resolutions, more details in this forum post: More
    22 November 2019
  • ProcessWire 3.0.144 and 3.0.145 add improved field template context override settings and include a new Inputfields API, along with numerous other issue fixes, optimizations and improvements to the core. More
    8 November 2019
  • ProcessWire 3.0.144 core updates: Upgraded overrides section in the field editor, a new Inputfields JS API, and more— More
    1 November 2019

Latest news

  • ProcessWire Weekly #291
    In the 291st issue of ProcessWire Weekly we're going to take a closer look at the latest core updates, check out a brand new third party module called ProcessHelpVideos, and introduce a new site of the week. Read on!
    Weekly.pw / 8 December 2019
  • New User Activity module
    Blog / 29 November 2019
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer