toUnauthorizedCacheControlHeaderStrategy method
Implementation
UnauthorizedCacheControlHeaderStrategy
toUnauthorizedCacheControlHeaderStrategy() {
switch (this) {
case 'FAIL_WITH_403':
return UnauthorizedCacheControlHeaderStrategy.failWith_403;
case 'SUCCEED_WITH_RESPONSE_HEADER':
return UnauthorizedCacheControlHeaderStrategy.succeedWithResponseHeader;
case 'SUCCEED_WITHOUT_RESPONSE_HEADER':
return UnauthorizedCacheControlHeaderStrategy
.succeedWithoutResponseHeader;
}
throw Exception(
'$this is not known in enum UnauthorizedCacheControlHeaderStrategy');
}