类 HttpHeadResponseDecorator
java.lang.Object
cn.taketoday.http.server.reactive.ServerHttpResponseDecorator
cn.taketoday.http.server.reactive.HttpHeadResponseDecorator
- 所有已实现的接口:
HttpMessage,ReactiveHttpOutputMessage,ServerHttpResponse
ServerHttpResponse decorator for HTTP HEAD requests.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private booleanfinal reactor.core.publisher.Mono<Void>writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer>> body) InvokeServerHttpResponseDecorator.setComplete()without writing.final reactor.core.publisher.Mono<Void>writeWith(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer> body) Consume and release the body without writing.从类继承的方法 cn.taketoday.http.server.reactive.ServerHttpResponseDecorator
addCookie, beforeCommit, bufferFactory, getCookies, getDelegate, getHeaders, getNativeResponse, getRawStatusCode, getStatusCode, isCommitted, setComplete, setRawStatusCode, setStatusCode, toString
-
构造器详细资料
-
HttpHeadResponseDecorator
-
-
方法详细资料
-
writeWith
public final reactor.core.publisher.Mono<Void> writeWith(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer> body) Consume and release the body without writing.If the headers contain neither Content-Length nor Transfer-Encoding, and the body is a
Mono, count the bytes and set Content-Length.- 指定者:
writeWith在接口中ReactiveHttpOutputMessage- 覆盖:
writeWith在类中ServerHttpResponseDecorator- 参数:
body- the body content publisher- 返回:
- a
Monothat indicates completion or error
-
shouldSetContentLength
private boolean shouldSetContentLength() -
writeAndFlushWith
public final reactor.core.publisher.Mono<Void> writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer>> body) InvokeServerHttpResponseDecorator.setComplete()without writing.RFC 7302 allows HTTP HEAD response without content-length and it's not something that can be computed on a streaming response.
- 指定者:
writeAndFlushWith在接口中ReactiveHttpOutputMessage- 覆盖:
writeAndFlushWith在类中ServerHttpResponseDecorator- 参数:
body- the body content publisher- 返回:
- a
Monothat indicates completion or error
-