format method

String format()

Formats the policy for representation in the HTTP response header.

Returns a string representation of the rate limit policy, suitable for use in HTTP headers. The format is: 'limitCount;w=windowInSeconds]'.

Implementation

String format() => '$limitCount;w=${window.inSeconds}';