-
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
Extra Work #2
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changing to File Extensions rather than Static File Checking
This replaces the check static files options. Please remove all mentions of it.
Relevant sections of code:
Utilise this regex (it has been been modified to work in Ruby):
Before Intercept and After Intercept Hooks (Using Procs) in the Interceptor
These should inside the interceptor, allowing people to hook into the before and after interception to allow client side caching.
Relevant Sections of Code:
Rack Flexibility - all options that are in the Detector/Client/Interceptor (after/before intercept hooks) should be available in the config.rb inside the rack folder.
I noticed that the Rack accepts an options hash. This is then put into the config.rb object. Can you make it so that the config.rb object can accept all the options that are available on Detector, Client and Interceptor.
Furthermore, I would like it so that the user can pass a callback such as a proc, that essentially receives the response array from the middleware, and can return an array specifying the status code, headers (key to value) and body response. This would replace this part: https://github.com/SnapSearch/SnapSearch-Client-Ruby/blob/master/lib/rack/snap_search.rb#L56-L82
However if the user does not pass back a body response, then what you have currently already written should be used as a fallback default.
The text was updated successfully, but these errors were encountered: