lib/IO/K8s/GatewayAPI/V1beta1/HTTPCORSFilter.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/IO/K8s/GatewayAPI/V1beta1/HTTPBackendRef.pm ↑ Summary lib/IO/K8s/GatewayAPI/V1beta1/HTTPHeaderFilter.pm »
1 package IO::K8s::GatewayAPI::V1beta1::HTTPCORSFilter;
2 # ABSTRACT: CORS defines a schema for a filter that responds to the cross-origin request based on HTTP response header.
3 1 our $VERSION = '1.112';
4 1 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 k8s allowCredentials => Bool;
7 1 k8s allowHeaders => [Str], { pattern => '^[A-Za-z0-9!#$%&\'*+\\-.^_\\x60|~]+$' };
8 1 k8s allowMethods => [Str], { enum => ['GET','HEAD','POST','PUT','DELETE','CONNECT','OPTIONS','TRACE','PATCH','*'] };
9 1 k8s allowOrigins => [Str], { pattern => '(^\\*$)|(^(http(s)?):\\/\\/(((\\*\\.)?([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9-]+|\\*)(:([0-9]{1,5}))?)$)' };
10 1 k8s exposeHeaders => [Str], { pattern => '^[A-Za-z0-9!#$%&\'*+\\-.^_\\x60|~]+$' };
11 1 k8s maxAge => Int, { minimum => 1, default => 5 };
12  
13  
14  
15  
16  
17  
18  
19 1 1;
20  
21 __END__
« lib/IO/K8s/GatewayAPI/V1beta1/HTTPBackendRef.pm ↑ Summary lib/IO/K8s/GatewayAPI/V1beta1/HTTPHeaderFilter.pm »