-
Notifications
You must be signed in to change notification settings - Fork 157
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
Another day, Another session. #272
Closed
Closed
Commits on Sep 7, 2015
-
feat(server): add some shared data across all requests
This can be used to add some compile time dependencies for Middleware and Plugins. To fix code broken by this, you will need to introduce a type parameter for Request, Response, MiddlewareResult and NickelError. ``` // e.g. This fn foo<'a>(&mut Request, Response<'a>) -> MiddlewareResult<'a> // Should become: fn foo<'a, D>(&mut Request<D>, Response<'a, D>) -> MiddlewareResult<'a, D> ``` You can add bounds to `D` in the above to place compile-time restrictions on the server data (can be used for configuration). BREAKING CHANGE
Configuration menu - View commit details
-
Copy full SHA for 8e462b3 - Browse repository at this point
Copy the full SHA 8e462b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a0e43b - Browse repository at this point
Copy the full SHA 0a0e43bView commit details -
feat(response): allow Plugins for Response
Also adds `on_send` which can be used to execute code when the Response headers are being sent.
Configuration menu - View commit details
-
Copy full SHA for 060e9cc - Browse repository at this point
Copy the full SHA 060e9ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ace3fa - Browse repository at this point
Copy the full SHA 7ace3faView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc83ec1 - Browse repository at this point
Copy the full SHA fc83ec1View commit details -
fix(cookies): add explicit implementations for Cookies trait
The 1.2 beta has a regression for this kind of code, so being explicit should allow us to compile on all targets.
Configuration menu - View commit details
-
Copy full SHA for a3e3c26 - Browse repository at this point
Copy the full SHA a3e3c26View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5b1f6f - Browse repository at this point
Copy the full SHA b5b1f6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07a697d - Browse repository at this point
Copy the full SHA 07a697dView commit details -
feat(macros): allow hinting the server data type in middleware macro
This can sometimes be required when using some middleware which are predicated on the datatype of the Server. An alternative would be to litter the handler with extra type annotations (which is awkward without type ascription), or to use explicit type-annotated functions as middleware. Example usage: ``` middleware! { |res| <ServerData> // res is of type Response<ServerData> } ```
Configuration menu - View commit details
-
Copy full SHA for 696b4a1 - Browse repository at this point
Copy the full SHA 696b4a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3754356 - Browse repository at this point
Copy the full SHA 3754356View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45e25d5 - Browse repository at this point
Copy the full SHA 45e25d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf001c2 - Browse repository at this point
Copy the full SHA bf001c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8591b8d - Browse repository at this point
Copy the full SHA 8591b8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 279301e - Browse repository at this point
Copy the full SHA 279301eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7def1b3 - Browse repository at this point
Copy the full SHA 7def1b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23d1494 - Browse repository at this point
Copy the full SHA 23d1494View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a3fc6f - Browse repository at this point
Copy the full SHA 3a3fc6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b7742c - Browse repository at this point
Copy the full SHA 7b7742cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.