Documentation tweaks for CRAN.
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
App
object back to Beakr
for
internal consistency.beakr()
to newBeakr()
to avoid
confusion.http_get()
, et al to to
httpGET()
et al.kill()
to `startServer().httpuv_kstopAllServers()
..addListener()
and added functionality inside
of on()
function.cors()
, on()
, include()
,
kill_all()
, list_active()
,
logger()
, use()
, websocket()
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 frameworkskill()/killall()
,
active()