当前位置: 首页>>代码示例>>PHP>>正文


PHP Request::withoutStrictSSL方法代码示例

本文整理汇总了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();
 }
开发者ID:voku,项目名称:httpful,代码行数:21,代码来源:Request.php


注:本文中的Httpful\Request::withoutStrictSSL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。