# Package org.springframework.web.servlet.function

@NonNullApi @NonNullFields package org.springframework.web.servlet.function
Provides the types that make up Spring's functional web framework for Servlet environments.

Related Packages
Package
Description
org.springframework.web.servlet
Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.
org.springframework.web.servlet.function.support
Classes supporting the `org.springframework.web.servlet.function` package.
Class
Description
AsyncServerResponse
Asynchronous subtype of `ServerResponse` that exposes the future response.
EntityResponse<T>
Entity-specific subtype of `ServerResponse` that exposes entity data.
EntityResponse.Builder<T>
Defines a builder for `EntityResponse`.
HandlerFilterFunction<T extends ServerResponse,R extends ServerResponse>
Represents a function that filters a handler function.
HandlerFunction<T extends ServerResponse>
Represents a function that handles a request.
RenderingResponse
Rendering-specific subtype of `ServerResponse` that exposes model and template data.
RenderingResponse.Builder
Defines a builder for `RenderingResponse`.
RequestPredicate
Represents a function that evaluates on a given `ServerRequest`.
RequestPredicates
Implementations of `RequestPredicate` that implement various useful request matching operations, such as matching based on path, HTTP method, etc.
RequestPredicates.Visitor
Receives notifications from the logical structure of request predicates.
RouterFunction<T extends ServerResponse>
Represents a function that routes to a handler function.
RouterFunctions
Central entry point to Spring's functional web framework. Exposes routing functionality, such as to create a `RouterFunction` using a discoverable builder-style API, to create a `RouterFunction` given a `RequestPredicate` and `HandlerFunction`, and to do further subrouting on an existing routing function.
RouterFunctions.Builder
Represents a discoverable builder for router functions.
RouterFunctions.Visitor
Receives notifications from the logical structure of router functions.
ServerRequest
Represents a server-side HTTP request, as handled by a `HandlerFunction`.
ServerRequest.Builder
Defines a builder for a request.
ServerRequest.Headers
Represents the headers of the HTTP request.
ServerResponse
Represents a typed server-side HTTP response, as returned by a handler function or filter function.
ServerResponse.BodyBuilder
Defines a builder that adds a body to the response.
ServerResponse.Context
Defines the context used during the `ServerResponse.writeTo(HttpServletRequest, HttpServletResponse, Context)`.
ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>
Defines a builder that adds headers to the response.
ServerResponse.HeadersBuilder.WriteFunction
Defines the contract for `ServerResponse.HeadersBuilder.build(WriteFunction)`.
ServerResponse.SseBuilder
Defines a builder for a body that sends server-sent events.
ServerResponse.StreamBuilder
Defines a builder for a streaming response body.