NEWS.md
rawTypesPattern
in serveStaticFiles()
to remove “text”. That should never have gotten in there.FUN
parameter to handleErrors()
so users can define their own function to deal with error responses.httpuv_~()
function wrappers in favor of importing the functions directly from httpuv.serveStaticFiles()
now works.Lots of refactoring with an eye toward:
core functionality only for an initial release
consistent, predictable naming
more documentation and examples
Renamed App
object back to Beakr
for internal consistency.
Renamed beakr()
to newBeakr()
to avoid confusion.
Renamed http_get()
, et al to to httpGET()
et al.
Renamed kill()
to `startServer().
Added httpuv_kstopAllServers()
.
Removed .addListener()
and added functionality inside of on()
function.
Removed the following functions as superflous for an initial release: cors()
, on()
, include()
, kill_all()
, list_active()
, logger()
, use()
, websocket()
Improved documentation and examples throughout.
http_get()
, http_post()
, http_put()
, http_delete()
.new_error()
, error_handler()
static()
function to serve static files.createBeakr()
-> beakr()
Beakr
class object to App
to align with other popular webframeworks (Express.js, Flask)handleErrors()
to handler()
onEvent()
to on()
onEvent()
event listeningbeakr
instance nameslogger()
.get()
==> GET()
, etc..killall()
to killAll()
.@examples
.listen()
to startBeakr()
.request
, response
, and error
object names to req
, res
, err
, as more consistent with popular frameworks