Release Notes - v0.8.x
What’s new?
- Auto Parse and Bind - Controller action parameters.
- Centralized Error Handler.
- Secure HTTP Headers.
- Content Negotiation.
- Max Request Body Limit.
Changelog
Features
- Auto Parse and Bind - Controller action parameters, refer to doc, #26.
- Centralized Error Handler, refer to doc, #57.
- Secure HTTP headers, refer to configuration, #88.
- Content Negotiation, refer to configuration, #75.
- Max Request Body size at global and individual route level #83.
- Added convenient method to save multipart uploaded file #82.
- Registering external JSON Library, refer to doc, #79.
Enhancements
- aah server header made configurable, refer to config, #98.
- aah application PID file path made configurable, refer to config, #99
- Custom Render implementation support added, refer to doc, #103.
- Code improvements, Documentation, Website improvements.
Bug Fixes
Migration Guide
aah.conf
Time Format configuration enhanced to support more formats. So remove these two date
and datetime
config and add following config under format { ... }
# Time format for auto parse and bind. aah tries to parse the
# time value in the order they defined till it gets success
# otherwise returns the error.
time = [
"2006-01-02T15:04:05Z07:00",
"2006-01-02T15:04:05Z",
"2006-01-02 15:04:05",
"2006-01-02"
]
Breaking changes
routes.conf
not_found { ... }
configuration section in routes.conf
have been removed in-favor of Centralized Error Handler.
ahttp.Request
Payload
field have been removed in-favor of Auto parse and bind feature. Also Body()
method is introduced in v0.8
to get access to request body if need be.