Package-level declarations
Types
Looks up contents of a resource path.
A ReverseProxyHostMatcher is used to determine how the host header is matched against the extracted host from the request.
Composite handler which can potentially service many different URL patterns. Should return a specified Response if it cannot service a particular Request.
Applies the generic templating routing logic regardless of protocol
Properties
Functions
Ensure the request is accepting a specific content type
Route by proactive negotiation of content language.
A generic implementation of routing by proactive content negotiation. See RFC 9110, Section 12.1
Ensure all queries are present and match what is in the Uri
Simple Reverse Proxy which will split and direct traffic to the appropriate HttpHandler based on the content of the Host header.
Simple Reverse Proxy. Exposes routing.
For SPAs we serve static content as usual, or fall back to the index page. The resource loader is configured to look at /public package (on the Classpath).
Serve static content using the passed ResourceLoader. Note that for security, by default ONLY mime-types registered in mime.types (resource file) will be served. All other types are registered as application/octet-stream and are not served.
Serve WebJar contents from the classpath. Just install the dependencies and add this line to your routes().