k8s/http-symfony
最新稳定版本:1.1.0
Composer 安装命令:
composer require k8s/http-symfony
包简介
Symfony based HttpClient factory for k8s/client
关键字:
README 文档
README
This library provides a Symfony based HttpClient factory for the k8s/client library.
General Use with the K8s library / Configuration Options
- Install the library:
composer require k8s/http-symfony
- Construct the main client for
k8s/clientthrough theK8sFactory:
use K8s\Client\K8sFactory; # Load the client from the default KubeConfig $k8s = (new K8sFactory())->loadFromKubeConfig();
Your new client will have all the HttpClient options needed pre-populated when used.
Default HTTP Options Configuration
To specify extra defaults for the Symfony HTTP client, you can construct it like this:
use K8s\HttpSymfony\ClientFactory; use K8s\Client\K8sFactory; # Pass any Symfony HTTP client options here. # The below would allow for self-signed certificates. $httpFactory = new ClientFactory([ 'verify_peer' => false, 'verify_host' => false, ]); $k8s = (new K8sFactory())->loadFromKubeConfig(null, $httpFactory);
统计信息
- 总下载量: 941
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-14