This release contains breaking changes.
Requires Elixir 1.15 or higher.
All public functions in TestServer have been moved to TestServer.HTTP. The
HTTP server adapters in TestServer.HTTPServer.* have been moved to
TestServer.HTTP.Server.*. add/2 has been renamed to handle/2, and websocket_info/2 has been renamed to websocket_send/2 and now takes options as second argument.
TestServer now has SSH support with TestServer.SSH.
- Fixed bug where
:matchfunctions that raised errors always matched inTestServer.HTTP.handle/2andTestServer.HTTP.websocket_handle/2 - Fixed UTF-8 response body handling for
TestServer.HTTP.Server.Httpd - Fixed invalid host header port parsing in
TestServer.HTTP.Server.Httpd - Fixed bracketed IPv6 host header parsing in
TestServer.HTTP.Server.Httpd - Fixed query string parsing with extra
?segments inTestServer.HTTP.Server.Httpd
Requires Elixir 1.14 or higher.
- Fixed incorrect formatting of websocket handlers
- Fixed breaking change with plug 1.19
- Limit number of Cowboy acceptors to 1 to improve performance
- Fixed bug with message emitted in Bandit 1.7.0
- Include
:inetsin:extra_applicationsto prevent compilation issue withTestServer.HTTPServer.Httpd
- Allow
:toplug to be set forTestServer.websocket_init/3for handshake
- Limit number of Bandit acceptors to 1 to improve performance
- Fixed invalid spec for
TestServer.url/1
- Fixed breaking changes with Bandit 1.4
- Validates
:http_serveroption
- Fixed compiler warning in
TestServer.Instance
- Fixed controlling process issues related to using the Bandit HTTP/2 adapter calling
Plug.Connfunctions in plug callbacks
- Fixed breaking change to options in Bandit 0.7.6
- Now uses
Plug.Conn.resp/3instead ofPlug.Conn.send_resp/3to prevent controlling process issue in Bandit - Silenced Bandit logs
- Silence TLS notice logs
:httpdserver adapter now can read request body
:httpdserver adapter now parses remote ip to tuple format:httpdserver adapter now parses host from host header- Specifying
:hostnow also binds the hostname to IPv6 loopback - Added
:ipfamilyoption to set IP address type to use
- Support Bandit and httpd web server
- BREAKING CHANGE: SSL certificate settings have been moved to the
:tlsoption
- The specified port is checked to ensure is in valid range
- Added suspended routes and web socket handlers to error messages
TestServer.websocket_info/2now takes the callback function as second argument
- WebSocket support
- Improved multi-instance handling
- Support for pre-match plugs
- Better formatting of errors
TestServer.url/2no longer autostarts the test server
- Initial release