类 HttpHeadResponseDecorator
- java.lang.Object
- org.springframework.http.server.reactive.ServerHttpResponseDecorator
- org.springframework.http.server.reactive.HttpHeadResponseDecorator
public class HttpHeadResponseDecorator extends ServerHttpResponseDecorator
ServerHttpResponse
decorator for HTTP HEAD requests.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 HttpHeadResponseDecorator(ServerHttpResponse delegate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<Void>
writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends DataBuffer>> body)
InvokeServerHttpResponseDecorator.setComplete()
without writing.reactor.core.publisher.Mono<Void>
writeWith(org.reactivestreams.Publisher<? extends DataBuffer> body)
Consume and release the body without writing.从类继承的方法 org.springframework.http.server.reactive.ServerHttpResponseDecorator
addCookie, beforeCommit, bufferFactory, getCookies, getDelegate, getHeaders, getStatusCode, isCommitted, setComplete, setStatusCode, toString
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.http.server.reactive.ServerHttpResponse
getRawStatusCode, setRawStatusCode
构造器详细资料
HttpHeadResponseDecorator
public HttpHeadResponseDecorator(ServerHttpResponse delegate)
方法详细资料
writeWith
public final reactor.core.publisher.Mono<Void> writeWith(org.reactivestreams.Publisher<? extends DataBuffer> body)
Consume and release the body without writing.If the headers contain neither Content-Length nor Transfer-Encoding, count the bytes and set Content-Length.
- 指定者:
writeWith
在接口中ReactiveHttpOutputMessage
- 覆盖:
writeWith
在类中ServerHttpResponseDecorator
- 参数:
body
- the body content publisher- 返回:
- a
Mono
that indicates completion or error
writeAndFlushWith
public final reactor.core.publisher.Mono<Void> writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends 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
Mono
that indicates completion or error