程序包 org.springframework.http
Contains a basic abstraction over client/server-side HTTP. This package contains the
HttpInputMessage
and HttpOutputMessage
interfaces.接口概要 接口 说明 ContentDisposition.Builder A mutable builder forContentDisposition
.HttpInputMessage HttpMessage Represents the base interface for HTTP request and response messages.HttpOutputMessage HttpRequest ReactiveHttpInputMessage An "reactive" HTTP input message that exposes the input asPublisher
.ReactiveHttpOutputMessage A "reactive" HTTP output message that accepts output as aPublisher
.RequestEntity.BodyBuilder Defines a builder that adds a body to the response entity.RequestEntity.HeadersBuilder<B extends RequestEntity.HeadersBuilder<B>> Defines a builder that adds headers to the request entity.ResponseCookie.ResponseCookieBuilder A builder for a server-defined HttpCookie with attributes.ResponseEntity.BodyBuilder Defines a builder that adds a body to the response entity.ResponseEntity.HeadersBuilder<B extends ResponseEntity.HeadersBuilder<B>> Defines a builder that adds headers to the response entity.StreamingHttpOutputMessage Represents an HTTP output message that allows for setting a streaming body.StreamingHttpOutputMessage.Body Defines the contract for bodies that can be written directly to anOutputStream
.ZeroCopyHttpOutputMessage Sub-interface ofReactiveOutputMessage
that has support for "zero-copy" file transfers.类概要 类 说明 CacheControl A builder for creating "Cache-Control" HTTP response headers.ContentDisposition Represent the Content-Disposition type and parameters as defined in RFC 6266.HttpCookie Represents an HTTP cookie as a name-value pair consistent with the content of the "Cookie" request header.HttpEntity<T> Represents an HTTP request or response entity, consisting of headers and body.HttpHeaders A data structure representing HTTP request or response headers, mapping String header names to a list of String values, also offering accessors for common application-level data types.HttpLogging Holds the shared logger named "org.springframework.web.HttpLogging" for HTTP related logging when "org.springframework.http" is not enabled but "org.springframework.web" is.HttpRange Represents an HTTP (byte) range for use with the HTTP"Range"
header.MediaType A subclass ofMimeType
that adds support for quality parameters as defined in the HTTP specification.MediaTypeEditor MediaTypeFactory RequestEntity<T> ResponseCookie AnHttpCookie
subclass with the additional attributes allowed in the "Set-Cookie" response header.ResponseEntity<T> Extension ofHttpEntity
that adds aHttpStatus
status code.枚举概要 枚举 说明 HttpMethod Java 5 enumeration of HTTP request methods.HttpStatus Enumeration of HTTP status codes.HttpStatus.Series Enumeration of HTTP status series.异常错误概要 异常错误 说明 InvalidMediaTypeException Exception thrown fromMediaType.parseMediaType(String)
in case of encountering an invalid media type specification String.