TaroHeaderOption typedef

TaroHeaderOption = ({bool checkMaxAgeIfExist, bool ifThrowMaxAgeHeaderError})

TaroHeaderOption is used to configure the options for a header request.

Implementation

typedef TaroHeaderOption = ({
  /// If true, the method checks the cache-control: max-age.
  bool checkMaxAgeIfExist,

  /// If true, the method throws an exception if the max-age header is invalid.
  bool ifThrowMaxAgeHeaderError,
});