Package io.micronaut.http.server.tck
Class CorsAssertion.Builder
java.lang.Object
io.micronaut.http.server.tck.CorsAssertion.Builder
- Enclosing class:
- CorsAssertion
CORS Assertion Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet expectation of value for the HTTP Header "Access-Control-Allow-Credentials" to "true".allowCredentials
(boolean allowCredentials) Set expectation of value for the HTTP Header "Access-Control-Allow-Credentials" to "true".allowCredentials
(String accessControlAllowCredentials) allowMethods
(HttpMethod method) allowOrigin
(String origin) build()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vary
- Parameters:
varyValue
- The expected value for the HTTP Header "Vary".- Returns:
- The Builder
-
allowCredentials
- Parameters:
accessControlAllowCredentials
- The expected value for the HTTP Header "Access-Control-Allow-Credentials".- Returns:
- The Builder
-
allowCredentials
Set expectation of value for the HTTP Header "Access-Control-Allow-Credentials" to "true".- Returns:
- The Builder
-
allowCredentials
Set expectation of value for the HTTP Header "Access-Control-Allow-Credentials" to "true".- Parameters:
allowCredentials
- Set expectation of value for the HTTP Header "Access-Control-Allow-Credentials"- Returns:
- The Builder
-
allowOrigin
- Parameters:
origin
- The expected value for the HTTP Header "Access-Control-Allow-Origin".- Returns:
- The Builder
-
allowMethods
- Parameters:
method
- The expected value for the HTTP Header "Access-Control-Allow-Methods".- Returns:
- The Builder
-
maxAge
- Parameters:
maxAge
- The expected value for the HTTP Header "Access-Control-Max-Age".- Returns:
- The Builder
-
build
- Returns:
- A CORS assertion.
-