[英]Custom http client when using google's java adwords client library?
I'm using google's java client library to create adwords campaigns. 我正在使用Google的Java 客户端库来创建adwords广告系列。 This works fine during development, but when I deploy my service to production, all our outgoing requests need to pass through our own proxy. 在开发过程中,这很好用,但是当我将服务部署到生产环境时,所有传出的请求都需要通过我们自己的代理进行传递。 Our proxy examines some of our custom http headers and forwards the request to the Internet. 我们的代理检查我们的一些自定义http标头,并将请求转发到Internet。 My questions are: 1. is it possible to use my own custom http client instead of the one that ships with the library to make the http request ? 我的问题是:1.是否可以使用我自己的自定义http客户端而不是库随附的发出http请求的客户端? 2. in case 1. is not possible, is it possible to add custom http headers to the requests made by the client? 2.如果无法使用1.,是否可以向客户的请求中添加自定义的HTTP标头?
(I have looked at the source code and have determined that there is no obvious way to plug in my own http client, and would be pleased to be proven wrong. :) ) (我查看了源代码,并确定没有明显的方法可以插入我自己的http客户端,并且很高兴被证明是错误的。:))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.