All Downloads are FREE. Search and download functionalities are using the official Maven repository.

vertx.effect.mock.MockHeadersResp Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package vertx.effect.mock;

import io.vertx.core.MultiMap;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpHeaders;
import io.vertx.core.http.HttpServerRequest;

import java.util.function.Function;
import java.util.function.IntFunction;


public interface MockHeadersResp extends IntFunction>> {

    MockHeadersResp EMPTY = n -> body -> req -> HttpHeaders.headers();

    MockHeadersResp JSON = n -> body -> req -> HttpHeaders.headers()
                                                          .add("Content-Type",
                                                               "application/json"
                                                              );


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy