程序包 org.springframework.http
Contains a basic abstraction over client/server-side HTTP. This package contains the
HttpInputMessage and HttpOutputMessage interfaces.接口概要 接口 说明 HttpInputMessage HttpMessage Represents the base interface for HTTP request and response messages.HttpOutputMessage HttpRequest 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.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 a HTTP output message that allows for setting a streaming body.StreamingHttpOutputMessage.Body Defines the contract for bodies that can be written directly to anOutputStream.类概要 类 说明 CacheControl A builder for creating "Cache-Control" HTTP response headers.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.HttpRange Represents an HTTP (byte) range for use with the HTTP"Range"header.MediaType A subclass ofMimeTypethat adds support for quality parameters as defined in the HTTP specification.MediaTypeEditor RequestEntity<T> ResponseEntity<T> Extension ofHttpEntitythat adds aHttpStatusstatus 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.