private RequestWrapper wrapRequest(
final HttpRequest request) throws ProtocolException {
if (request instanceof HttpEntityEnclosingRequest) {
return new EntityEnclosingRequestWrapper(
(HttpEntityEnclosingRequest) request);
} else {
return new RequestWrapper(
request);
}
}
java类org.apache.http.impl.client.EntityEnclosingRequestWrapper的实例源码
DefaultRequestDirector.java 文件源码
项目:FullRobolectricTestSample
阅读 22
收藏 0
点赞 0
评论 0
LibRequestDirector.java 文件源码
项目:YiBo
阅读 25
收藏 0
点赞 0
评论 0
private RequestWrapper wrapRequest(
final HttpRequest request) throws ProtocolException {
if (request instanceof HttpEntityEnclosingRequest) {
return new EntityEnclosingRequestWrapper(
(HttpEntityEnclosingRequest) request);
} else {
return new RequestWrapper(
request);
}
}
YiBoRequestDirector.java 文件源码
项目:yibo-library
阅读 20
收藏 0
点赞 0
评论 0
private RequestWrapper wrapRequest(
final HttpRequest request) throws ProtocolException {
if (request instanceof HttpEntityEnclosingRequest) {
return new EntityEnclosingRequestWrapper(
(HttpEntityEnclosingRequest) request);
} else {
return new RequestWrapper(
request);
}
}