-
- All Implemented Interfaces:
-
kotlin.Function,kotlin.Function1
public final class CorsCallback implements Function1<HttpServerContext, HttpServerContext>
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, SuccessStatus preFlightStatus, Long preFlightMaxAge)CorsCallback(Regex allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, SuccessStatus preFlightStatus, Long preFlightMaxAge)
-
Method Summary
Modifier and Type Method Description HttpServerContextinvoke(HttpServerContext context)-
-
Constructor Detail
-
CorsCallback
CorsCallback(String allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, SuccessStatus preFlightStatus, Long preFlightMaxAge)
-
CorsCallback
CorsCallback(Regex allowedOrigin, Set<HttpMethod> allowedMethods, Set<String> allowedHeaders, Set<String> exposedHeaders, Boolean supportCredentials, SuccessStatus preFlightStatus, Long preFlightMaxAge)
-
-
Method Detail
-
invoke
HttpServerContext invoke(HttpServerContext context)
-
-
-
-