
vertx.effect.core.BodyHttpReq 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.core;
import jsonvalues.JsObj;
import static java.util.Objects.requireNonNull;
public abstract class BodyHttpReq> extends HttpReq {
public BodyHttpReq(final byte[] body) {
this.body = requireNonNull(body);
}
private final byte[] body;
@Override
public JsObj createHttpReq() {
return BYTES_BODY_LENS.set.apply(body)
.apply(super.createHttpReq());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy