Class CorsCallback
-
- All Implemented Interfaces:
-
kotlin.Function,kotlin.Function1
public final class CorsCallback implements Function1<HttpContext, HttpContext>HTTP CORS callback. It holds info for CORS.
-
-
Constructor Summary
Constructors Constructor Description CorsCallback(String allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)CorsCallback(Regex allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
-
Method Summary
Modifier and Type Method Description HttpContextinvoke(HttpContext context)-
-
Constructor Detail
-
CorsCallback
CorsCallback(String allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
-
CorsCallback
CorsCallback(Regex allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, HttpStatus preFlightStatus, Long preFlightMaxAge)
-
-
Method Detail
-
invoke
HttpContext invoke(HttpContext context)
-
-
-
-