インタフェースjava.net.http.HttpResponse.PushPromiseHandlerの
使用
-
HttpResponse.PushPromiseHandlerを使用するパッケージ パッケージ 説明 java.net.http HTTPクライアントおよびWebSocket API -
-
java.net.httpでのHttpResponse.PushPromiseHandlerの使用
HttpResponse.PushPromiseHandlerを戻すjava.net.httpのメソッド 修飾子と型 メソッド 説明 static <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler. of(Function<HttpRequest,HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest,CompletableFuture<HttpResponse<T>>> pushPromisesMap)
指定されたマップに、プッシュ・プロ・ミスおよびそのレスポンスを累積する、プッシュ・プロ・ミス・ハンドラを返します。型HttpResponse.PushPromiseHandlerのパラメータを持つjava.net.httpのメソッド 修飾子と型 メソッド 説明 abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient. sendAsync(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler, HttpResponse.PushPromiseHandler<T> pushPromiseHandler)
指定されたレスポンス本文ハンドラとともにこのクライアントを使用して、指定されたリクエストを非同期に送信し、プッシュ・プロ・ミス・ハンドラをプッシュします。
-