vendor/maxmind/web-service-common/src/WebService/Client.php

(开头部分) 17KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

declare(strict_types=1);

namespace MaxMind\WebService;

use Composer\CaBundle\CaBundle;
use MaxMind\Exception\AuthenticationException;
use MaxMind\Exception\HttpException;
use MaxMind\Exception\InsufficientFundsException;
use MaxMind\Exception\InvalidInputException;
use MaxMind\Exception\InvalidRequestException;
use MaxMind\Exception\IpAddressNotFoundException;
use MaxMind\Exception\PermissionRequiredException;
use MaxMind\Exception\WebServiceException;
use MaxMind\WebService\Http\RequestFactory;

/**
 * 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.
 *
 * @internal
 */
class Client
{
    public const VERSION = '0.2.0';

    /**
     * @var string|null
     */
    private $caBundle;

    /**
     * @var float|null
     */
    private $connectTimeout;

    /**
     * @var string
     */
    private $host = 'api.maxmind.com';

    /**
     * @var bool
     */
    private $useHttps = true;

    /**
     * @var RequestFactory
     */
    private $httpRequestFactory;

    /**
     * @var string
     */
    private $licenseKey;

    /**
     * @var string|null
后面还有 486 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。