本文整理了Java中org.apache.hc.core5.http.HttpRequest.headerIterator()
方法的一些代码示例,展示了HttpRequest.headerIterator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.headerIterator()
方法的具体详情如下:
包路径:org.apache.hc.core5.http.HttpRequest
类名称:HttpRequest
方法名:headerIterator
暂无
代码示例来源:origin: org.apache.httpcomponents.client5/httpclient5
@Override
public void onRequestHead(final HttpConnection connection, final HttpRequest request) {
if (headerLog.isDebugEnabled()) {
headerLog.debug(id + " >> " + new RequestLine(request));
for (final Iterator<Header> it = request.headerIterator(); it.hasNext(); ) {
headerLog.debug(id + " >> " + it.next());
}
}
}
代码示例来源:origin: apache/httpcomponents-core
@Override
public void onRequestHead(final HttpConnection connection, final HttpRequest request) {
if (headerLog.isDebugEnabled()) {
final String idRequestDirection = LoggingSupport.getId(connection) + requestDirection;
headerLog.debug(idRequestDirection + new RequestLine(request));
for (final Iterator<Header> it = request.headerIterator(); it.hasNext(); ) {
headerLog.debug(idRequestDirection + it.next());
}
}
}
代码示例来源:origin: org.apache.httpcomponents.core5/httpcore5-testing
@Override
public void onRequestHead(final HttpConnection connection, final HttpRequest request) {
if (headerLog.isDebugEnabled()) {
final String idRequestDirection = LoggingSupport.getId(connection) + requestDirection;
headerLog.debug(idRequestDirection + new RequestLine(request));
for (final Iterator<Header> it = request.headerIterator(); it.hasNext(); ) {
headerLog.debug(idRequestDirection + it.next());
}
}
}
代码示例来源:origin: org.apache.httpcomponents.client5/httpclient5
@Override
public HttpRequest copy(final HttpRequest original) {
if (original == null) {
return null;
}
final BasicHttpRequest copy = new BasicHttpRequest(original.getMethod(), original.getPath());
copy.setVersion(original.getVersion());
for (final Iterator<Header> it = original.headerIterator(); it.hasNext(); ) {
copy.addHeader(it.next());
}
copy.setScheme(original.getScheme());
copy.setAuthority(original.getAuthority());
return copy;
}
代码示例来源:origin: org.apache.httpcomponents.client5/httpclient5
public static SimpleHttpRequest copy(final HttpRequest original) {
Args.notNull(original, "HTTP request");
final SimpleHttpRequest copy = new SimpleHttpRequest(original.getMethod(), original.getRequestUri());
copy.setVersion(original.getVersion());
for (final Iterator<Header> it = original.headerIterator(); it.hasNext(); ) {
copy.addHeader(it.next());
}
copy.setScheme(original.getScheme());
copy.setAuthority(original.getAuthority());
return copy;
}
代码示例来源:origin: org.apache.httpcomponents.core5/httpcore5
final Iterator<String> ti = new BasicTokenIterator(request.headerIterator(HttpHeaders.CONNECTION));
while (ti.hasNext()) {
final String token = ti.next();
代码示例来源:origin: apache/httpcomponents-core
final Iterator<String> ti = new BasicTokenIterator(request.headerIterator(HttpHeaders.CONNECTION));
while (ti.hasNext()) {
final String token = ti.next();
代码示例来源:origin: org.apache.httpcomponents.client5/httpclient5
for (final Iterator<Header> it = original.headerIterator(); it.hasNext(); ) {
request.addHeader(it.next());
代码示例来源:origin: apache/httpcomponents-core
for (final Iterator<Header> it = message.headerIterator(); it.hasNext(); ) {
final Header header = it.next();
final String name = header.getName();
内容来源于网络,如有侵权,请联系作者删除!