- Backwards incompatible change: Converted the pre-cached headers to a map.
- Converted to cowboy 2.x (Thanks Eric, @etxemag75)
- Deprecated
sbw:set_cookie/5
in favor of a new, more flexible,sbw:set_cookie/4
, which takes anOptions
argument for specifyinghttp_only
,max_age
,secure
, etc. (Dmitry Polyanovsky) - Remove deprecated
erlang:now()
. - Expose the cowboy dispatch table generation so that a user can use it to
build their own dispatch table based on it,
(
cowboy_simple_bridge_sup:get_dispatch_info/2
). (Olivier-Boudeville) - Fix tail-call bug in
simple_bridge_websocket
- Fix a bug looking for a custom inets.config
- Add dialyzer and travis rules to Makefile
- Fix a handful of issues found by dialyzer
- Fix a number of yaws-related issues (max post size, keepalive, static file fallback)
- Set the cowboy supervisor to not
infinity
. - Add a few more tests.
- Ensure support up to Erlang 23.
- Fix a multipart parsing error related to mismatched content-length vs actual content length.
- Allow binary headers for the inets bridge
- Set up supervision properly for cowboy
- Simple Bridge is no longer dependent on the deprecated parameter module
contruct, however, all relevant modules have retained the necessary structure
to treat them as parameter modules, if you so choose. The standard interface
is now through a module called
sbw
. - All backends now provide a default supervisor for simplified starting and building backend-specific configurations.
- All backends now provide an "anchor" module, which serves as an intermediary between the server and the "handler" module.
- Merged Request and Response bridge into a single
Bridge
"object" using the modulesbw
(simple bridge wrapper). - Added
simple_bridge:make(Backend)
function to replace having to make both request and response bridges. - Added a handler behaviour (
-behaviour(simple_bridge_handler)
) for each platform, customizable withsimple_bridge:start(Backend, HandlerMod)
. This relies on the use of an "Anchor" module, a default provided for each module. - Added a sample handler module which can be used as a basis for future
functionality. (
simple_bridge_handler_sample.erl
) - Added Websocket Support for Yaws, Cowboy using their native implementations.
- Added a Websocket Hijacker to support websockets on non-websocket backends, particularly Mochiweb, Inets, and Webmachine.
- Header values will be returned as binaries if the Header name provided is a binary. If header is provided as an atom or a list, it will return a list.
- Provided a quickstart demo to try out all backends with request, response,
and websockets.
make run_BACKEND
, where BACKEND iscowboy
,inets
,mochiweb
,webmachine
, oryaws
. - Rewrote the test suite to use the same testing codebase for all backends.
- Removed support for Misultin.
- Added protocol() for cowboy.
- Use
erlang/pmod_transform
instead ofchoptastic/pmod_transform
for backwards compatible pmod transforms - Added
x-forwarded-proto
header - Fixed
peer_name
andpeer_port
for yaws - Fix Cowboy's bridge so
request_body
just returns a binary
- Add ability to store temp files in memory if they are small enough, otherwise.
- Supports Cowboy, Inets, Mochiweb, Webmachine, Yaws, and Misultin