Repository navigation
Releases
Releases · ForceUniverse/dart-forcemvc
HttpMessageConverters
- Update version of wired to v0.4.5
- improve @responsebody & httpmessageconverter logic
RestController
- Introducing @RestController
- improve @responsebody
- solve path variables with dash, issue #32
UpdateDep & ResponseBody
- Updating dependencies on logging
- Clean up code
- introduce @ResponceBody
- HttpMessageConverters and HttpMessageRegulator are also available in this release with a JsonHttpMessageConverter implementation
ResponseStatus
- Introducing a new annotation @ResponseStatus, so we can indicate status code of the response
WrapUp
- Adopt code to async/await
- Extract locale to an other dependency
HttpResponse
- Allow completely handling the HttpResponse by the user it self
Some more info:
This adds a mode where the developer can entirely manually handle the HttpResponse. This is activated by returning the HttpResponse on the @RequestMapping function.
Currently it was not possible to directly write to the HttpResponse (req.request.response) because the framework was always trying to change headers/write on it.
Alternatively we could detect if the the HttpResponse has already been processed/closed by catching exception when the framework tries to write to the HTTP headers in _send_response and, in this case, not write to the body.
WiredComponents
- update forcemvc to wired 4.3
- add web config and an easy change towards core components with di
- SecurityContextHolder
- HandlerExceptionResolver
- LocaleResolver
- ServingAssistent
Remove StartPage
- remove start page and use this instead!
app.static("/", "index.html");
Rename
- WebServer becomes WebApplication dart class
- The .on method becomes .use method
- app.static will skip the view rendering logic, ideal for angular and polymer applications
- simplify code on some parts
Rest.Extend
- Extending the possibilities of a Rest interface.