HTTP requests are bound to have values not conforming to the RFC spec. When that happens it's easier to handle errors when we know it's a bad value in a particular part of Cache-Control header (like with ErrMaxDeltaSeconds) than strconv.ErrSyntax that appeared somewhere during parsing.
HTTP requests are bound to have values not conforming to the RFC spec. When that happens it's easier to handle errors when we know it's a bad value in a particular part of Cache-Control header (like with
ErrMaxDeltaSeconds
) thanstrconv.ErrSyntax
that appeared somewhere during parsing.