io.vertx.core.http.HttpFrame Java Examples

The following examples show how to use io.vertx.core.http.HttpFrame. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KeepAliveHttpServerResponse.java    From sfs with Apache License 2.0 6 votes vote down vote up
@Override
public HttpServerResponse writeCustomFrame(HttpFrame frame) {
    ObservableFuture<Void> h = RxHelper.observableFuture();
    stopKeepAlive(h);
    h.subscribe(new Subscriber<Void>() {
        @Override
        public void onCompleted() {
            delegate.writeCustomFrame(frame);
        }

        @Override
        public void onError(Throwable e) {
            handleThrowable(e);
        }

        @Override
        public void onNext(Void aVoid) {

        }
    });
    return this;
}
 
Example #2
Source File: ForwardedServerRequestWrapper.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public HttpServerRequest customFrameHandler(Handler<HttpFrame> handler) {
    delegate.customFrameHandler(handler);
    return this;
}
 
Example #3
Source File: AbstractResponseWrapper.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Override

    public HttpServerResponse writeCustomFrame(HttpFrame frame) {
        delegate.writeCustomFrame(frame);
        return this;
    }
 
Example #4
Source File: AbstractRequestWrapper.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public HttpServerRequest customFrameHandler(Handler<HttpFrame> handler) {
    delegate.customFrameHandler(handler);
    return this;
}
 
Example #5
Source File: InterceptableRoutingContextImplTest.java    From vertx-swagger with Apache License 2.0 4 votes vote down vote up
@Override
public HttpServerRequest customFrameHandler(Handler<HttpFrame> handler) {
    // TODO Auto-generated method stub
    return null;
}
 
Example #6
Source File: S3ClientRequest.java    From vertx-s3-client with Apache License 2.0 4 votes vote down vote up
@Override
public S3ClientRequest writeCustomFrame(HttpFrame frame) {
    request.writeCustomFrame(frame);
    return this;
}
 
Example #7
Source File: SfsRequest.java    From sfs with Apache License 2.0 4 votes vote down vote up
@Override
public HttpServerRequest customFrameHandler(Handler<HttpFrame> handler) {
    httpServerRequest.customFrameHandler(handler);
    return this;
}
 
Example #8
Source File: SfsRequest.java    From sfs with Apache License 2.0 4 votes vote down vote up
@Override
public HttpServerResponse writeCustomFrame(HttpFrame frame) {
    response.writeCustomFrame(frame);
    return this;
}