use of io.vertx.core.http.impl.HeadersAdaptor in project vert.x by eclipse.
the class HttpTest method getHeaders.
protected static MultiMap getHeaders(int num) {
Map<String, String> map = genMap(num);
MultiMap headers = new HeadersAdaptor(new DefaultHttpHeaders());
for (Map.Entry<String, String> entry : map.entrySet()) {
headers.add(entry.getKey(), entry.getValue());
}
return headers;
}
Aggregations