public interface ResourceCustomizer
This is primarily used to customize the headers of static files. Register this hook with ResourceHandlerBuilder.withResourceCustomizer(ResourceCustomizer)
Modifier and Type | Method and Description |
---|---|
default void |
beforeHeadersSent(MuRequest request,
Headers responseHeaders)
Called after the default headers have been set, just before they are sent to the client.
|
default void beforeHeadersSent(MuRequest request, Headers responseHeaders)
request
- The client requestresponseHeaders
- The headers that will be sent to the client, which can be modified in this methodCopyright © 2017–2021. All rights reserved.