-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Cookies and Queries list #1
base: main
Are you sure you want to change the base?
Add Cookies and Queries list #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I think we need regex because some of the names contain random numbers or identifiers.
What we imho also need then is the basic regex and correct escaping and quoting. And maybe we can provide a shortcut for Symfony's request class. It's so common that it imho qualifies for that (we can also add PSR, if anybody does the work of course).
Regarding the naming: I have no clue how to name this properly. It's a list of data you usually don't want to have on the server side :D But only relevant for caching. So maybe HttpCacheStripList
🤔
@Toflar yeah I think that would make sense, would you put it into the same class all? Or seperate classes for HttpFoundation and PSR7 strip? |
Hmm, probably in separate classes. Separation of concerns and stuff :) |
It's not only about caching, e.g. the canonical url should also ignore the irrelevant query parameters. |
I'm thinking about moving SEAL also to PHP Namespace
Correctly camelcased things like HTTP, CMS, SEAL would be Http, Cms, Seal so the choices would be, but I'm open here for suggestions:
Composer / Packagist Namespace:
Maybe @Seldaek can tell us if I personally would find |
I think from my side yes I could grant you access to cms/ vendor, but cmsig would be more sensible IMO as less generic. |
@Seldaek Thank you for the response think then we will go with My suggestions so would be: PHP Namespace: |
References
Open Questions
Regex
orStrings
?Queries
,QueryList
,Query
, ...Cookies
,CookieList
,Cookie
, ...getList
,get
,Query
, ...PhpCmsig\HttpList
,Cmsig\HttpList
, ...php-cmsig/http-list
,cmsig/http-list
, ...TODO