Search in sources :

Example 1 with HeadersAdaptor

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;
}
Also used : MultiMap(io.vertx.core.MultiMap) DefaultHttpHeaders(io.netty.handler.codec.http.DefaultHttpHeaders) HeadersAdaptor(io.vertx.core.http.impl.HeadersAdaptor) MultiMap(io.vertx.core.MultiMap) Map(java.util.Map) HashMap(java.util.HashMap)

Aggregations

DefaultHttpHeaders (io.netty.handler.codec.http.DefaultHttpHeaders)1 MultiMap (io.vertx.core.MultiMap)1 HeadersAdaptor (io.vertx.core.http.impl.HeadersAdaptor)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1