io.vtom.vertx.pipeline.component.web.client._VtmBinaryRequest Maven / Gradle / Ivy
package io.vtom.vertx.pipeline.component.web.client;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpClientResponse;
import io.vertx.ext.web.client.HttpRequest;
import io.vtom.vertx.pipeline.tk.Pvtk;
class _VtmBinaryRequest implements VtmRequest {
private HttpRequest request;
private VtmHttpClientOUT stepout;
_VtmBinaryRequest(HttpRequest request, VtmHttpClientOUT stepout) {
this.request = request;
this.stepout = stepout;
}
@Override
public void request(Handler> handler) {
this.request.sendBuffer(Buffer.buffer(this.stepout.binary()), Pvtk.handleTo(handler));
}
}