pquerna / cachecontrol

Golang HTTP Cache-Control Parser and Interpretation
Apache License 2.0
138 stars 17 forks source link

Add cacheobject.UsingRequestResponseWithObject API #9

Closed glasser closed 6 years ago

glasser commented 6 years ago

It's nice to not have to rewrite all of UsingRequestResponse just because you want to check out one random field on obj (say, to look for NoCache/NoCachePresent if you don't have the ability to revalidate).

glasser commented 6 years ago

Also added exposure of OutWarnings.