private function Client::createRequest in Smart IP 6.2
Same name and namespace in other branches
- 7.2 includes/vendor/maxmind/web-service-common/src/WebService/Client.php \MaxMind\WebService\Client::createRequest()
2 calls to Client::createRequest()
- Client::get in includes/
vendor/ maxmind/ web-service-common/ src/ WebService/ Client.php - Client::post in includes/
vendor/ maxmind/ web-service-common/ src/ WebService/ Client.php
File
- includes/
vendor/ maxmind/ web-service-common/ src/ WebService/ Client.php, line 148
Class
- Client
- This class is not intended to be used directly by an end-user of a MaxMind web service. Please use the appropriate client API for the service that you are using. @package MaxMind\WebService @internal
Namespace
MaxMind\WebServiceCode
private function createRequest($path, $headers = array()) {
array_push($headers, 'Authorization: Basic ' . base64_encode($this->userId . ':' . $this->licenseKey), 'Accept: application/json');
return $this->httpRequestFactory
->request($this
->urlFor($path), array(
'caBundle' => $this->caBundle,
'connectTimeout' => $this->connectTimeout,
'headers' => $headers,
'proxy' => $this->proxy,
'timeout' => $this->timeout,
'userAgent' => $this
->userAgent(),
));
}