Struct aws_sdk_apigatewayv2::model::Cors
source · #[non_exhaustive]pub struct Cors { /* private fields */ }Expand description
Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
Implementations§
source§impl Cors
impl Cors
sourcepub fn allow_credentials(&self) -> bool
pub fn allow_credentials(&self) -> bool
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
sourcepub fn allow_headers(&self) -> Option<&[String]>
pub fn allow_headers(&self) -> Option<&[String]>
Represents a collection of allowed headers. Supported only for HTTP APIs.
sourcepub fn allow_methods(&self) -> Option<&[String]>
pub fn allow_methods(&self) -> Option<&[String]>
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
sourcepub fn allow_origins(&self) -> Option<&[String]>
pub fn allow_origins(&self) -> Option<&[String]>
Represents a collection of allowed origins. Supported only for HTTP APIs.
sourcepub fn expose_headers(&self) -> Option<&[String]>
pub fn expose_headers(&self) -> Option<&[String]>
Represents a collection of exposed headers. Supported only for HTTP APIs.