クラス HttpHeadResponseDecorator

java.lang.ObjectSE
org.springframework.http.server.reactive.ServerHttpResponseDecorator
org.springframework.http.server.reactive.HttpHeadResponseDecorator
実装されたすべてのインターフェース:
HttpMessageReactiveHttpOutputMessageServerHttpResponse

public class HttpHeadResponseDecorator extends ServerHttpResponseDecorator
HTTP HEAD リクエスト用の ServerHttpResponse デコレータ。
導入:
5.0
作成者:
Rossen Stoyanchev
  • コンストラクターの詳細

  • メソッドの詳細

    • writeWith

      public final reactor.core.publisher.Mono<VoidSE> writeWith(Publisher<? extends DataBuffer> body)
      書くことなく体を消費して解放します。

      ヘッダーに Content-Length も Transfer-Encoding も含まれておらず、本文が Mono の場合は、バイト数をカウントして Content-Length を設定します。

      次で指定:
      インターフェース ReactiveHttpOutputMessagewriteWith 
      オーバーライド:
      クラス ServerHttpResponseDecoratorwriteWith 
      パラメーター:
      body - 本文コンテンツ発行者
      戻り値:
      完了またはエラーを示す Mono 
    • writeAndFlushWith

      public final reactor.core.publisher.Mono<VoidSE> writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body)
      書き込みなしで ServerHttpResponseDecorator.setComplete() を呼び出します。

      RFC 7302 では、コンテンツの長さのない HTTP HEAD レスポンスが許可されており、ストリーミングレスポンスで計算できるものではありません。

      次で指定:
      インターフェース ReactiveHttpOutputMessagewriteAndFlushWith 
      オーバーライド:
      クラス ServerHttpResponseDecoratorwriteAndFlushWith 
      パラメーター:
      body - 本文コンテンツ発行者
      戻り値:
      完了またはエラーを示す Mono