io.vertx.reactivex.core.MultiMap.addAll()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中io.vertx.reactivex.core.MultiMap.addAll()方法的一些代码示例,展示了MultiMap.addAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.addAll()方法的具体详情如下:
包路径:io.vertx.reactivex.core.MultiMap
类名称:MultiMap
方法名:addAll

MultiMap.addAll介绍

暂无

代码示例

代码示例来源:origin: Cognifide/knotx

@Override
public BinaryOperator<MultiMap> combiner() {
 return (map1, map2) -> {
  map1.addAll(map2);
  return map1;
 };
}

代码示例来源:origin: io.knotx/knotx-core

@Override
public BinaryOperator<MultiMap> combiner() {
 return (map1, map2) -> {
  map1.addAll(map2);
  return map1;
 };
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public ClientRequest setParams(MultiMap params) {
 this.params = MultiMap.caseInsensitiveMultiMap().addAll(params);
 return this;
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public ClientRequest setFormAttributes(MultiMap formAttributes) {
 this.formAttributes = MultiMap.caseInsensitiveMultiMap().addAll(formAttributes);
 return this;
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public ClientResponse setHeaders(MultiMap headers) {
 this.headers = MultiMap.caseInsensitiveMultiMap().addAll(headers);
 return this;
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public ClientRequest setHeaders(MultiMap headers) {
 this.headers = MultiMap.caseInsensitiveMultiMap().addAll(headers);
 return this;
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public ClientRequest setFormAttributes(MultiMap formAttributes) {
 this.formAttributes = MultiMap.caseInsensitiveMultiMap().addAll(formAttributes);
 return this;
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public ClientRequest setParams(MultiMap params) {
 this.params = MultiMap.caseInsensitiveMultiMap().addAll(params);
 return this;
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public ClientResponse setHeaders(MultiMap headers) {
 this.headers = MultiMap.caseInsensitiveMultiMap().addAll(headers);
 return this;
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public ClientRequest setHeaders(MultiMap headers) {
 this.headers = MultiMap.caseInsensitiveMultiMap().addAll(headers);
 return this;
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public MultiMap getHeaders() {
 return MultiMap.caseInsensitiveMultiMap().addAll(headers);
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public MultiMap getFormAttributes() {
 return MultiMap.caseInsensitiveMultiMap().addAll(formAttributes);
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public MultiMap getHeaders() {
 return MultiMap.caseInsensitiveMultiMap().addAll(headers);
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public MultiMap getParams() {
 return MultiMap.caseInsensitiveMultiMap().addAll(params);
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public MultiMap getHeaders() {
 return MultiMap.caseInsensitiveMultiMap().addAll(headers);
}

代码示例来源:origin: io.knotx/knotx-core

@GenIgnore
public MultiMap getFormAttributes() {
 return MultiMap.caseInsensitiveMultiMap().addAll(formAttributes);
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public MultiMap getHeaders() {
 return MultiMap.caseInsensitiveMultiMap().addAll(headers);
}

代码示例来源:origin: Cognifide/knotx

@GenIgnore
public MultiMap getParams() {
 return MultiMap.caseInsensitiveMultiMap().addAll(params);
}

代码示例来源:origin: io.knotx/knotx-core

private Observable<HttpClientResponse> get(HttpClient client, RequestOptions requestOptions,
  MultiMap headers) {
 return Observable.unsafeCreate(subscriber -> {
  HttpClientRequest req = client.get(requestOptions);
  req.headers().addAll(headers);
  if (headers.get(HttpHeaderNames.HOST.toString()) != null) {
   req.setHost(headers.get(HttpHeaderNames.HOST.toString()));
  }
  Observable<HttpClientResponse> resp = req.toObservable();
  resp.subscribe(subscriber);
  req.end();
 });
}

代码示例来源:origin: Cognifide/knotx

private Observable<HttpClientResponse> get(HttpClient client, RequestOptions requestOptions,
  MultiMap headers) {
 return Observable.unsafeCreate(subscriber -> {
  HttpClientRequest req = client.get(requestOptions);
  req.headers().addAll(headers);
  if (headers.get(HttpHeaderNames.HOST.toString()) != null) {
   req.setHost(headers.get(HttpHeaderNames.HOST.toString()));
  }
  Observable<HttpClientResponse> resp = req.toObservable();
  resp.subscribe(subscriber);
  req.end();
 });
}

相关文章