-
Notifications
You must be signed in to change notification settings - Fork 272
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
Proposed enhancements #2
Comments
Agree that all of them would be useful. I have a CORSHandler implemented in another (internal) project right now but I'm not sure I like the API yet. Currently looks like this:
|
I also recently implemented gzip/flate, which doesn't have nearly as much tuning as the CORS handler. Would like some feedback on the CORS stuff though. |
@kisielk The CORS stuff looks pretty good to me. |
@philips Cool :) Do you have any plans to use it? I could add it in some time on the weekend. |
@kisielk I just had to re-invent it, poorly, for etcd etcd-io/etcd#320 |
@philips Have a look at cors.go in https://gist.github.com/kisielk/0de4fc0375f56acf5f73 |
@kisielk It makes sense to me based on implementing cors for etcd. |
@kisielk Would you mind if I cleaned up your gist and submitted a PR to gorilla/handlers? |
Not at all |
See the discussion here: gorilla#2
See the discussion here: gorilla#2
would a basic auth handler be a good addition. It would need to take a validate function that accepts a username, password and returns an error I have one |
@awsmsrc Might be worth opening a separate issue for that. If it's an existing repo that you'd like to merge in, provide the link. If it's fresh work, it helps to talk it over before committing too much time. |
Going to close this for now. Separate issues can be filed for individual enhancements. |
See the discussion here: gorilla#2
CORSHandler
CacheHandler
and
GZipHandler come to mind. For the later there is an example here:
https://github.com/the42/schoolcalc/blob/master/webzapfen/webzapfen.go#L611
However, ideally, Handlers would be stackable.
The text was updated successfully, but these errors were encountered: