- Set the Content-Type response header to application/json automatically when encoding JSON responses.
- Fix for handling of the path "/" in Elixir 1.6
- Add
Plug.Parsers
to the default pre-routing Plug list.
- Fix deprecation warnings for
String.strip/1
andString.lstrip/2
. - Update live reload Plug for compatability with Elixir 1.6.
- Support for settting custom plugs to pass requests through before or after routing
- New plug, Trot.AuthCheck, for requiring authorization on a select set of routes.
- Update Elixir to 1.4
- Update dependancies
- Replace deprecated
Behaviour
module with@callback
attributes
- Update plug_heartbeat dependency to remove usage of deprecated function in Plug
- Added VERSION file to hex package
- Compatability fixed with Plug v0.13.0
- Added
plug_heartbeat
to the list of applications for exrm releases - Ensure redirects are sent with lowercase headers
- Convert cowboy port to an integer when starting up
- Start Cowboy automatically based on configured values in the application
- Support parsing RPC errors into HTTP responses
- Added default route for
/heartbeat
- Added live code reloading in dev
- Support for API versioning with pattern patching against versions
- Made connection handling for unknown routes optional. The old behavior can be re-enabled by adding
use Trot.NotFound
to the end of a routing module. - Added
import_routes/1
as a new macro to help chain router modules - Allow headers to be passed as part of a route's returned tuple and parse them into the HTTP response
- Added the ability to route requests based on HTTP request headers
- Support for template rendering using EEx and/or HAML
- Add a default root for static routes of priv/static
- Support setting the module attribute @path_root as a prefix to route paths
- Fixed sending response of {atom, text} to resolve the atom to a status code
- Support for redirection through a macro and normal return values
- Support for static routes through a macro
- End the plug pipeline with a
not_found
function