接口 HttpOutputMessage
- 所有超级接口:
HttpMessage
- 所有已知实现类:
AbstractClientHttpRequest
,MockAsyncClientHttpRequest
,MockClientHttpRequest
,MockHttpOutputMessage
,ServletServerHttpResponse
public interface HttpOutputMessage extends HttpMessage
Represents an HTTP output message, consisting of headers and a writable body.Typically implemented by an HTTP request handle on the client side, or an HTTP response handle on the server side.
- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 OutputStream
getBody()
Return the body of the message as an output stream.从接口继承的方法 org.springframework.http.HttpMessage
getHeaders
方法详细资料
getBody
OutputStream getBody() throws IOException
Return the body of the message as an output stream.- 返回:
- the output stream body (never
null
) - 抛出:
IOException
- in case of I/O errors