Interface ResponseMarshaler.Builder.CorsPreflightRejectedHandler
- Enclosing class:
ResponseMarshaler.Builder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function used to support pluggable implementations of
ResponseMarshaler.forCorsPreflightRejected(Request, CorsPreflight).- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionhandle(Request request, CorsPreflight corsPreflight) Prepares a response for "CORS preflight rejected" scenario when yourCorsAuthorizerdenies a preflight request.
-
Method Details
-
handle
Prepares a response for "CORS preflight rejected" scenario when yourCorsAuthorizerdenies a preflight request.Detailed documentation is available at https://www.soklet.com/docs/cors#writing-cors-responses.
- Parameters:
request- the HTTP requestcorsPreflight- the CORS preflight request data- Returns:
- the response to be sent over the wire
-