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


PHP RequestCore::__construct方法代码示例

本文整理汇总了PHP中RequestCore::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP RequestCore::__construct方法的具体用法?PHP RequestCore::__construct怎么用?PHP RequestCore::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RequestCore的用法示例。


在下文中一共展示了RequestCore::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Method: __construct()
  * 	The constructor
  *
  * Access:
  * 	public
  *
  * Parameters:
  * 	$url - _string_ (Optional) The URL to request or service endpoint to query.
  * 	$proxy - _string_ (Optional) The faux-url to use for proxy settings. Takes the following format: `proxy://user:pass@hostname:port`
  * 	$helpers - _array_ (Optional) An associative array of classnames to use for request, and response functionality. Gets passed in automatically by the calling class.
  *
  * Returns:
  * 	`$this`
  */
 public function __construct($url = null, $proxy = null, $helpers = null)
 {
     parent::__construct($url, $proxy, $helpers);
     // Standard settings for all requests
     $this->add_header('Expect', '100-continue');
     $this->set_useragent(CFRUNTIME_USERAGENT);
     return $this;
 }
开发者ID:Webbiker,项目名称:Klompenschuurtje,代码行数:23,代码来源:request.class.php

示例2: __construct

 /**
  * Constructs a new instance of this class.
  *
  * @param string $url (Optional) The URL to request or service endpoint to query.
  * @param string $proxy (Optional) The faux-url to use for proxy settings. Takes the following format: `proxy://user:pass@hostname:port`
  * @param array $helpers (Optional) An associative array of classnames to use for request, and response functionality. Gets passed in automatically by the calling class.
  * @param CFCredential $credentials (Required) The credentials to use for signing and making requests.
  * @return $this A reference to the current instance.
  */
 public function __construct($url = null, $proxy = null, $helpers = null, CFCredential $credentials = null)
 {
     parent::__construct($url, $proxy, $helpers);
     // Standard settings for all requests
     $this->set_useragent(CFRUNTIME_USERAGENT);
     $this->credentials = $credentials;
     $this->cacert_location = $this->credentials['certificate_authority'] ? $this->credentials['certificate_authority'] : false;
     return $this;
 }
开发者ID:nayabbukhari,项目名称:circulocristiano,代码行数:18,代码来源:request.class.php

示例3: __construct

 /**
  * Constructs a new instance of this class.
  *
  * @param string $url (Optional) The URL to request or service endpoint to query.
  * @param string $proxy (Optional) The faux-url to use for proxy settings. Takes the following format: `proxy://user:pass@hostname:port`
  * @param array $helpers (Optional) An associative array of classnames to use for request, and response functionality. Gets passed in automatically by the calling class.
  * @return $this A reference to the current instance.
  */
 public function __construct($url = null, $proxy = null, $helpers = null)
 {
     parent::__construct($url, $proxy, $helpers);
     // Standard settings for all requests
     $this->add_header('Expect', '100-continue');
     $this->set_useragent(CFRUNTIME_USERAGENT);
     $this->cacert_location = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : (defined('AWS_CERTIFICATE_AUTHORITY') ? AWS_CERTIFICATE_AUTHORITY : false);
     return $this;
 }
开发者ID:jervy-ez,项目名称:magic-members-test,代码行数:17,代码来源:request.class.php

示例4: __construct

 /**
  * Constructs a new instance of this class.
  *
  * @param string $url (Optional) The URL to request or service endpoint to query.
  * @param string $proxy (Optional) The faux-url to use for proxy settings. Takes the following format: `proxy://user:pass@hostname:port`
  * @param array $helpers (Optional) An associative array of classnames to use for request, and response functionality. Gets passed in automatically by the calling class.
  * @param CFCredential $credentials (Required) The credentials to use for signing and making requests.
  * @return $this A reference to the current instance.
  */
 public function __construct($url = null, $proxy = null, $helpers = null, CFCredential $credentials = null)
 {
     parent::__construct($url, $proxy, $helpers);
     // Standard settings for all requests
     $this->set_useragent(CFRUNTIME_USERAGENT);
     $this->credentials = $credentials;
     $this->cacert_location = $this->credentials['certificate_authority'] ? $this->credentials['certificate_authority'] : false;
     if (strpos(parse_url($url, PHP_URL_HOST), 'dynamodb') === 0) {
         $this->use_gzip_enconding = false;
     }
     return $this;
 }
开发者ID:mahassan,项目名称:shellneverknow,代码行数:21,代码来源:request.class.php


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