程序包 cn.taketoday.web.handler.function
@NonNullApi
@NonNullFields
package cn.taketoday.web.handler.function
Provides the types that make up Infra functional web framework.
-
类说明Abstract base class for
ServerResponseimplementations.Asynchronous subtype ofServerResponsethat exposes the future response.Implementation ofRouterFunctions.Visitorthat changes thePathPatternParseron path-related request predicates (i.e.Interface implemented by predicates that can change the parser.DefaultAsyncServerResponseimplementation.DefaultEntityResponse.Builderimplementation.EntityResponseimplementation for asynchronousCompletionStagebodies.DefaultEntityResponseimplementation for synchronous bodies.EntityResponseimplementation for asynchronousPublisherbodies.DefaultRenderingResponse.Builderimplementation.ServerRequestimplementation based on aRequestContext.Default implementation ofServerRequest.Headers.DefaultServerRequest.Builderimplementation.DefaultServerResponse.BodyBuilderimplementation.Entity-specific subtype ofServerResponsethat exposes entity data.Defines a builder forEntityResponse.Base class forServerResponseimplementations with error handling.Represents a function that filters a handler function.HandlerFunction<T extends ServerResponse>Represents a function that handles a request.Lookup function used byRouterFunctions.resources(String, Resource).Rendering-specific subtype ofServerResponsethat exposes model and template data.Defines a builder forRenderingResponse.Defines a builder forRenderingResponse.Represents a function that evaluates on a givenServerRequest.Implementations ofRequestPredicatethat implement various useful request matching operations, such as matching based on path, HTTP method, etc.RequestPredicatethat negates a delegate predicate.Extension ofRequestPredicatethat can modify theServerRequest.Receives notifications from the logical structure of request predicates.Resource-based implementation ofHandlerFunction.RouterFunction<T extends ServerResponse>Represents a function that routes to a handler function.Default implementation ofRouterFunctions.Builder.Router function returned byRouterFunctionBuilder.build()that simply iterates over the registered routes.Central entry point to Infra functional web framework. Exposes routing functionality, such as to create aRouterFunctionusing a discoverable builder-style API, to create aRouterFunctiongiven aRequestPredicateandHandlerFunction, and to do further subrouting on an existing routing function.Represents a discoverable builder for router functions.A composed routing function that first invokes one function, and then invokes another function (of a different response type) if this route had no result.Filter the specified handler functions with the given filter function.A composed routing function that first invokes one function, and then invokes the another function (of the same response typeT) if this route had no result.Receives notifications from the logical structure of router functions.Represents a server-side HTTP request, as handled by aHandlerFunction.Defines a builder for a request.Represents the headers of the HTTP request.Represents a typed server-side HTTP response, as returned by a handler function or filter function.Defines a builder that adds a body to the response.Defines the context used during theServerResponse.writeTo(RequestContext, Context).ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>Defines a builder that adds headers to the response.Defines the contract forServerResponse.HeadersBuilder.build(WriteFunction).Defines a builder for a body that sends server-sent events.Implementation ofServerResponsefor sending Server-Sent Events.Implementation ofRouterFunctions.Visitorthat creates a formatted string representation of router functions.