接口的使用
org.springframework.http.HttpMessage
使用HttpMessage的程序包 程序包 说明 org.springframework.http Contains a basic abstraction over client/server-side HTTP.org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.reactive Abstractions for reactive HTTP client support includingClientHttpRequest
andClientHttpResponse
as well as aClientHttpConnector
.org.springframework.http.client.support This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.org.springframework.http.codec org.springframework.http.converter.json Provides HttpMessageConverter implementations for handling JSON.org.springframework.http.server Contains an abstraction over server-side HTTP.org.springframework.http.server.reactive Abstractions for reactive HTTP server support including aServerHttpRequest
andServerHttpResponse
along with anHttpHandler
for processing.org.springframework.mock.http Mock implementations of client/server-side HTTP abstractions.org.springframework.mock.http.client Mock implementations of client-side HTTP abstractions.org.springframework.mock.http.client.reactive Mock implementations of reactive HTTP client contracts.org.springframework.mock.http.server.reactive Mock implementations of reactive HTTP server contracts.org.springframework.web.multipart.support Support classes for the multipart resolution framework.org.springframework.http中HttpMessage的使用
org.springframework.http中HttpMessage的子接口 修饰符和类型 接口 说明 interface
HttpInputMessage
interface
HttpOutputMessage
interface
HttpRequest
interface
ReactiveHttpInputMessage
An "reactive" HTTP input message that exposes the input asPublisher
.interface
ReactiveHttpOutputMessage
A "reactive" HTTP output message that accepts output as aPublisher
.interface
StreamingHttpOutputMessage
Represents an HTTP output message that allows for setting a streaming body.interface
ZeroCopyHttpOutputMessage
Sub-interface ofReactiveOutputMessage
that has support for "zero-copy" file transfers.org.springframework.http.client中HttpMessage的使用
org.springframework.http.client中HttpMessage的子接口 修饰符和类型 接口 说明 interface
AsyncClientHttpRequest
已过时。as of Spring 5.0, in favor ofClientRequest
interface
ClientHttpRequest
Represents a client-side HTTP request.interface
ClientHttpResponse
Represents a client-side HTTP response.实现HttpMessage的org.springframework.http.client中的类 修饰符和类型 类 说明 class
AbstractClientHttpRequest
Abstract base forClientHttpRequest
that makes sure that headers and body are not written multiple times.class
AbstractClientHttpResponse
Abstract base forClientHttpResponse
.org.springframework.http.client.reactive中HttpMessage的使用
org.springframework.http.client.reactive中HttpMessage的子接口 修饰符和类型 接口 说明 interface
ClientHttpRequest
Represents a client-side reactive HTTP request.interface
ClientHttpResponse
Represents a client-side reactive HTTP response.实现HttpMessage的org.springframework.http.client.reactive中的类 修饰符和类型 类 说明 class
AbstractClientHttpRequest
Base class forClientHttpRequest
implementations.class
ClientHttpRequestDecorator
Wraps anotherClientHttpRequest
and delegates all methods to it.class
ClientHttpResponseDecorator
Wraps anotherClientHttpResponse
and delegates all methods to it.org.springframework.http.client.support中HttpMessage的使用
实现HttpMessage的org.springframework.http.client.support中的类 修饰符和类型 类 说明 class
HttpRequestWrapper
Provides a convenient implementation of theHttpRequest
interface that can be overridden to adapt the request.org.springframework.http.codec中HttpMessage的使用
参数类型为HttpMessage的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 protected MediaType
DecoderHttpMessageReader. getContentType(HttpMessage inputMessage)
Determine the Content-Type of the HTTP message based on the "Content-Type" header or otherwise default toMediaType.APPLICATION_OCTET_STREAM
.org.springframework.http.converter.json中HttpMessage的使用
实现HttpMessage的org.springframework.http.converter.json中的类 修饰符和类型 类 说明 class
MappingJacksonInputMessage
HttpInputMessage
that can eventually stores a Jackson view that will be used to deserialize the message.org.springframework.http.server中HttpMessage的使用
org.springframework.http.server中HttpMessage的子接口 修饰符和类型 接口 说明 interface
ServerHttpRequest
Represents a server-side HTTP request.interface
ServerHttpResponse
Represents a server-side HTTP response.实现HttpMessage的org.springframework.http.server中的类 修饰符和类型 类 说明 class
ServletServerHttpRequest
ServerHttpRequest
implementation that is based on aHttpServletRequest
.class
ServletServerHttpResponse
ServerHttpResponse
implementation that is based on aHttpServletResponse
.org.springframework.http.server.reactive中HttpMessage的使用
org.springframework.http.server.reactive中HttpMessage的子接口 修饰符和类型 接口 说明 interface
ServerHttpRequest
Represents a reactive server-side HTTP request.interface
ServerHttpResponse
Represents a reactive server-side HTTP response.实现HttpMessage的org.springframework.http.server.reactive中的类 修饰符和类型 类 说明 class
AbstractListenerServerHttpResponse
Abstract base class for listener-based server responses, e.g.class
AbstractServerHttpRequest
Common base class forServerHttpRequest
implementations.class
AbstractServerHttpResponse
Base class forServerHttpResponse
implementations.class
HttpHeadResponseDecorator
ServerHttpResponse
decorator for HTTP HEAD requests.class
ServerHttpRequestDecorator
Wraps anotherServerHttpRequest
and delegates all methods to it.class
ServerHttpResponseDecorator
Wraps anotherServerHttpResponse
and delegates all methods to it.org.springframework.mock.http中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http中的类 修饰符和类型 类 说明 class
MockHttpInputMessage
Mock implementation ofHttpInputMessage
.class
MockHttpOutputMessage
Mock implementation ofHttpOutputMessage
.org.springframework.mock.http.client中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http.client中的类 修饰符和类型 类 说明 class
MockAsyncClientHttpRequest
已过时。as of Spring 5.0, with no direct replacementclass
MockClientHttpRequest
Mock implementation ofClientHttpRequest
.class
MockClientHttpResponse
Mock implementation ofClientHttpResponse
.org.springframework.mock.http.client.reactive中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http.client.reactive中的类 修饰符和类型 类 说明 class
MockClientHttpRequest
Mock implementation ofClientHttpRequest
.class
MockClientHttpResponse
Mock implementation ofClientHttpResponse
.org.springframework.mock.http.server.reactive中HttpMessage的使用
实现HttpMessage的org.springframework.mock.http.server.reactive中的类 修饰符和类型 类 说明 class
MockServerHttpRequest
Mock extension ofAbstractServerHttpRequest
for use in tests without an actual server.class
MockServerHttpResponse
Mock extension ofAbstractServerHttpResponse
for use in tests without an actual server.org.springframework.web.multipart.support中HttpMessage的使用
实现HttpMessage的org.springframework.web.multipart.support中的类 修饰符和类型 类 说明 class
RequestPartServletServerHttpRequest
ServerHttpRequest
implementation that accesses one part of a multipart request.