# Uses of Interface
org.springframework.web.servlet.function.EntityResponse.Builder

Packages that use EntityResponse.Builder
Package
Description
org.springframework.web.servlet.function
Provides the types that make up Spring's functional web framework for Servlet environments.

## Uses of EntityResponse.Builder in org.springframework.web.servlet.function

Methods in org.springframework.web.servlet.function that return EntityResponse.Builder
Modifier and Type
Method
Description
`EntityResponse.Builder<T>`
EntityResponse.Builder.`allow(Set<org.springframework.http.HttpMethod> allowedMethods)`
Set the set of allowed `HTTP methods`, as specified by the `Allow` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`allow(org.springframework.http.HttpMethod... allowedMethods)`
Set the set of allowed `HTTP methods`, as specified by the `Allow` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`cacheControl(org.springframework.http.CacheControl cacheControl)`
Set the caching directives for the resource, as specified by the HTTP 1.1 `Cache-Control` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`contentLength(long contentLength)`
Set the length of the body in bytes, as specified by the `Content-Length` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`contentType(org.springframework.http.MediaType contentType)`
Set the media type of the body, as specified by the `Content-Type` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`cookie(Cookie cookie)`
Add the given cookie to the response.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`cookies(Consumer<org.springframework.util.MultiValueMap<String,Cookie>> cookiesConsumer)`
Manipulate this response's cookies with the given consumer.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`eTag(String etag)`
Set the entity tag of the body, as specified by the `ETag` header.
`static <T> EntityResponse.Builder<T>`
EntityResponse.`fromObject(T t)`
Create a builder with the given object.
`static <T> EntityResponse.Builder<T>`
EntityResponse.`fromObject(T t, org.springframework.core.ParameterizedTypeReference<T> entityType)`
Create a builder with the given object and type reference.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`header(String headerName, String... headerValues)`
Add the given header value(s) under the given name.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`headers(Consumer<org.springframework.http.HttpHeaders> headersConsumer)`
Manipulate this response's headers with the given consumer.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`lastModified(Instant lastModified)`
Set the time the resource was last changed, as specified by the `Last-Modified` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`lastModified(ZonedDateTime lastModified)`
Set the time the resource was last changed, as specified by the `Last-Modified` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`location(URI location)`
Set the location of a resource, as specified by the `Location` header.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`status(int status)`
Set the HTTP status.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`status(org.springframework.http.HttpStatusCode status)`
Set the HTTP status.
`EntityResponse.Builder<T>`
EntityResponse.Builder.`varyBy(String... requestHeaders)`
Configure one or more request header names (for example, "Accept-Language") to add to the "Vary" response header to inform clients that the response is subject to content negotiation and variances based on the value of the given request headers.