/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with the host copied from the current request. * @param method * @param path * @param headers * @return * @deprecated use {@link #rxPush} instead */ @Deprecated() public Observable<io.vertx.rxjava.core.http.HttpServerResponse> pushObservable(HttpMethod method, String path, io.vertx.rxjava.core.MultiMap headers) { io.vertx.rx.java.ObservableFuture<io.vertx.rxjava.core.http.HttpServerResponse> handler = io.vertx.rx.java.RxHelper.observableFuture(); push(method, path, headers, handler.toHandler()); return handler; }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with the host copied from the current request. * @param method * @param path * @return * @deprecated use {@link #rxPush} instead */ @Deprecated() public Observable<io.vertx.rxjava.core.http.HttpServerResponse> pushObservable(HttpMethod method, String path) { io.vertx.rx.java.ObservableFuture<io.vertx.rxjava.core.http.HttpServerResponse> handler = io.vertx.rx.java.RxHelper.observableFuture(); push(method, path, handler.toHandler()); return handler; }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with no headers. * @param method * @param host * @param path * @return * @deprecated use {@link #rxPush} instead */ @Deprecated() public Observable<io.vertx.rxjava.core.http.HttpServerResponse> pushObservable(HttpMethod method, String host, String path) { io.vertx.rx.java.ObservableFuture<io.vertx.rxjava.core.http.HttpServerResponse> handler = io.vertx.rx.java.RxHelper.observableFuture(); push(method, host, path, handler.toHandler()); return handler; }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with the host copied from the current request. * @param method * @param path * @return */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String path) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, path, fut); })); }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with the host copied from the current request. * @param method * @param path * @param headers * @return */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String path, io.vertx.rxjava.core.MultiMap headers) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, path, headers, fut); })); }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with no headers. * @param method * @param host * @param path * @return */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String host, String path) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, host, path, fut); })); }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with no headers. * @param method * @param host * @param path * @return */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String host, String path) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, host, path, fut); })); }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with the host copied from the current request. * @param method * @param path * @return */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String path) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, path, fut); })); }
/** * Like {@link io.vertx.rxjava.core.http.HttpServerResponse#push} with the host copied from the current request. * @param method * @param path * @param headers * @return */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String path, io.vertx.rxjava.core.MultiMap headers) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, path, headers, fut); })); }
/** * Push a response to the client.<p/> * * The <code>handler</code> will be notified with a <i>success</i> when the push can be sent and with * a <i>failure</i> when the client has disabled push or reset the push before it has been sent.<p/> * * The <code>handler</code> may be queued if the client has reduced the maximum number of streams the server can push * concurrently.<p/> * * Push can be sent only for peer initiated streams and if the response is not ended. * @param method the method of the promised request * @param host the host of the promised request * @param path the path of the promised request * @param headers the headers of the promised request * @return a reference to this, so the API can be used fluently * @deprecated use {@link #rxPush} instead */ @Deprecated() public Observable<io.vertx.rxjava.core.http.HttpServerResponse> pushObservable(HttpMethod method, String host, String path, io.vertx.rxjava.core.MultiMap headers) { io.vertx.rx.java.ObservableFuture<io.vertx.rxjava.core.http.HttpServerResponse> handler = io.vertx.rx.java.RxHelper.observableFuture(); push(method, host, path, headers, handler.toHandler()); return handler; }
/** * Push a response to the client.<p/> * * The <code>handler</code> will be notified with a <i>success</i> when the push can be sent and with * a <i>failure</i> when the client has disabled push or reset the push before it has been sent.<p/> * * The <code>handler</code> may be queued if the client has reduced the maximum number of streams the server can push * concurrently.<p/> * * Push can be sent only for peer initiated streams and if the response is not ended. * @param method the method of the promised request * @param host the host of the promised request * @param path the path of the promised request * @param headers the headers of the promised request * @return a reference to this, so the API can be used fluently */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String host, String path, io.vertx.rxjava.core.MultiMap headers) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, host, path, headers, fut); })); }
/** * Push a response to the client.<p/> * * The <code>handler</code> will be notified with a <i>success</i> when the push can be sent and with * a <i>failure</i> when the client has disabled push or reset the push before it has been sent.<p/> * * The <code>handler</code> may be queued if the client has reduced the maximum number of streams the server can push * concurrently.<p/> * * Push can be sent only for peer initiated streams and if the response is not ended. * @param method the method of the promised request * @param host the host of the promised request * @param path the path of the promised request * @param headers the headers of the promised request * @return a reference to this, so the API can be used fluently */ public Single<io.vertx.rxjava.core.http.HttpServerResponse> rxPush(HttpMethod method, String host, String path, io.vertx.rxjava.core.MultiMap headers) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { push(method, host, path, headers, fut); })); }