BucketCorsItem class

Constructors

BucketCorsItem({Input<int>? maxAgeSeconds, Input<List<String>>? method, Input<List<String>>? origin, Input<List<String>>? responseHeader})
Creates a new BucketCorsItem. maxAgeSeconds The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. method The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "" is permitted in the list of methods, and means "any method". origin The list of Origins eligible to receive CORS response headers. Note: "" is permitted in the list of origins, and means "any Origin". responseHeader The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
const
BucketCorsItem.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxAgeSeconds → Input<int>?
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
final
method → Input<List<String>>?
The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
final
origin → Input<List<String>>?
The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
final
responseHeader → Input<List<String>>?
The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited