enum

Vug::LoopAction

Inherits Enum < Comparable < Value < Object

Type-safe action enum replacing bare Symbol dispatch in the fetch loop.

Named LoopAction to disambiguate from FetchAction (the redirect handler's Follow/Deny decision in fetch_types.cr). The two are different concepts: LoopAction is a loop-control decision made by the fetch loop after each round-trip; FetchAction is a single per-redirect decision made by the redirect validator.

Constants

Redirect = 0
TryFallback = 1
ReturnResult = 2
UseCached = 3

Instance methods

redirect?

Returns true if this enum value equals Redirect

Source
return_result?

Returns true if this enum value equals ReturnResult

Source
try_fallback?

Returns true if this enum value equals TryFallback

Source
use_cached?

Returns true if this enum value equals UseCached

Source