Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider library support for composing, parsing CacheControl #11

Open
apetro opened this issue Jul 11, 2016 · 5 comments
Open

Consider library support for composing, parsing CacheControl #11

apetro opened this issue Jul 11, 2016 · 5 comments

Comments

@apetro
Copy link
Contributor

apetro commented Jul 11, 2016

Available library support might ease the parsing, composing CacheControl headers.

Spring Framework seems to offer something.

@drewwills
Copy link
Owner

@apetro -- I looked at that (mid-progress). It's a builder. It solves the easier problem of outputting a valid Cache-Control string given a set of inputs. It doesn't (alas) solve the harder problem of parsing a set of inputs from a valid string.

That doesn't mean we' shouldn't use it -- we probably should. But the smell of roll-your-own is much greater on the parsing side than the building side.

@apetro
Copy link
Contributor Author

apetro commented Jul 12, 2016

@andrewstuart
Copy link
Contributor

There's also CacheControl which seems to be built solely for parsing Cache-Control header strings: CacheControl.valueOf(String value). Seems like that probably gets us exactly what we're looking for, without anything extra. 😄

@drewwills
Copy link
Owner

I looked at the one in javax.ws.rs.core as well, and it looks like it would suit. Anyone happen to know what dependency includes that package? (It doesn't appear to be in the JDK libs.)

@drewwills
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants