本文整理汇总了PHP中Httpful\Request::withoutStrictSSL方法的典型用法代码示例。如果您正苦于以下问题:PHP Request::withoutStrictSSL方法的具体用法?PHP Request::withoutStrictSSL怎么用?PHP Request::withoutStrictSSL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Httpful\Request
的用法示例。
在下文中一共展示了Request::withoutStrictSSL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initializeDefaults
/**
* This is the default template to use if no
* template has been provided. The template
* tells the class which default values to use.
* While there is a slight overhead for object
* creation once per execution (not once per
* Request instantiation), it promotes readability
* and flexibility within the class.
*/
private static function _initializeDefaults()
{
// This is the only place you will
// see this constructor syntax. It
// is only done here to prevent infinite
// recusion. Do not use this syntax elsewhere.
// It goes against the whole readability
// and transparency idea.
self::$_template = new self(array('method' => Http::GET));
// This is more like it...
self::$_template->withoutStrictSSL();
}