- Key definitions
- [Todo] Support for dual or multiple handlers starting at different web server ports
- Distributed trace
- [Todo] Sync with https://w3c.github.io/distributed-tracing/report-trace-context.html
- [Idea] Define config for default (but how to distinguish when more then one server?)
- host:
APP_HTTP_SERVER_HOST
- port:
APP_HTTP_SERVER_PORT
- thread-pool size etc.
- host:
- Dependency update
- Upgrade bract.core to
0.6.2
- Upgrade bract.core to
- Breaking changes
- Drop
bract.ring.util/nop
,bract.ring.dev/nop
in favour ofbract.core.util/nop
- Drop
- New features
- Add Ring middleware for traffic logging
- Add Ring wrapper for traffic logging
- Add support for nginx-clojure-embedded
bract.ring.server/start-nginx-clojure-embedded-server
- Add DEV logger functions
bract.ring.dev/log-*
forbract.ring.wrapper/traffic-log-wrapper
- Add DEV mode logger config in
config.dev.edn
file
- Add DEV mode logger config in
- Improvements
- Support HTTP
POST
method (with custom body) in/ping
middleware - Print banner when HTTP server starts
- Log events in wrappers
- Health - config
"bract.ring.health.event.name"
- Info - config
"bract.ring.info.event.name"
- Ping - config
"bract.ring.ping.event.name"
- Health - config
- Echo message when server stopped
- Include default config value for
bract.ring.server.options
inbract/ring/config.edn
- Support HTTP
- Documentation
- Add cljdoc badge
- Reformat docstring for cljdoc
- Add documentation page with context and config keys
- Upgrade bract.core to 0.6.1
- Upgrade bract.core to 0.6.0
- Key definitions
- Context
:bract.ring/server-starter
starts server - Context
:bract.ring/server-stopper
schedules stopper function for a started server - Context
:bract.ring/server-options
options to be passed to server when starting - Config
"bract.ring.server.options"
options to start server with
- Context
- Inducer
- Add
bract.ring.inducer/start-server
to easily start Ring server
- Add
- Add server-startup functions in
bract.ring.server
namespace (dependency not included)- Aleph -
bract.ring.server/start-aleph-server
- HTTP-Kit -
bract.ring.server/start-http-kit-server
- Immutant -
bract.ring.server/start-immutant-server
- Jetty -
bract.ring.server/start-jetty-server
- Aleph -
- Resources
- Add
bract/ring/context.edn
with context entries - [BREAKING CHANGE] Rename
bract/ring/default.edn
tobract/ring/config.edn
, removing non-config entries - [BREAKING CHANGE] Rename
bract/ring/devdelta.edn
tobract/ring/config.dev.edn
- Add
- Echo
- Emit "server started" message to STDERR for all supported servers
- Output server-started message to STDERR only when echo is disabled
- Use bract.core 0.5.1
- Use bract.core 0.5.0
- Add inducer
bract.ring.inducer/apply-middlewares
accepting Ring middleware - Wrappers (can toggle each with config flag)
- Health check (/health)
- Info endpoint (/info)
- Ping endpoint (/ping)
- uri-trailing-slash
- uri-prefix-match
- params-normalize
- unexpected->500
- traffic-drain
- distributed-trace
- Provide config files
bract/ring/default.edn
bract/ring/devdelta.edn
- Use bract.core 0.4.1
- Use the GA version of bract.core 0.4.0
- Use bract.core 0.4.0-alpha2
- Use bract.core 0.4.0-alpha1
- [BREAKING CHANGE] Rename
bract.ring.config
namespace tobract.ring.keydef
- Use bract.core 0.3.1
- Update inducer docstring to reflect the context keys they use
- Use bract.core 0.3
- Add inducer
bract.ring.inducer/apply-wrappers
accepting Ring wrappers - [BREAKING CHANGE] Remove unparameterized wrapper-applying inducers in favor of
apply-wrappers
- Remove inducer
bract.ring.inducer/ctx-apply-wrappers
- Remove inducer
bract.ring.inducer/cfg-apply-wrappers
- Remove config definition
bract.ring.config/ctx-wrappers
- Remove config definition
bract.ring.config/cfg-wrappers
- Remove inducer
- Use
[bract.core "0.2.0"]
- Config definition
bract.ring.config/ctx-wrappers
- Config definition
bract.ring.config/cfg-wrappers
- Inducer
bract.ring.inducer/ctx-apply-wrappers
- Inducer
bract.ring.inducer/cfg-apply-wrappers
- Inducer
bract.ring.inducer/apply-wrappers-with-context
- Inducer
bract.ring.inducer/apply-wrappers-with-config
- Config definition
bract.ring.config/cfg-wrappers-context
- Config definition
bract.ring.config/cfg-wrappers-config
- Development/test support for Ring handlers
- Bract inducer fn to apply configured wrappers (context)
- Bract inducer fn to apply configured wrappers (config)