vertx.effect.mock.MockHeadersResp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-effect Show documentation
Show all versions of vertx-effect Show documentation
When actors meet Functional Programming
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