Closed dead-horse closed 10 years ago
make http-assert the same logic with koa.
another is merge(err, opts), in koa's ctx.throw, it will ignore status, expose in opts, http-assert won't.
merge(err, opts)
ctx.throw
status
expose
seems both make sense to me, but can we make these also as the same logic?
thanks! yeah, I think that's a good idea as well
make http-assert the same logic with koa.
another is
merge(err, opts)
, in koa'sctx.throw
, it will ignorestatus
,expose
in opts, http-assert won't.seems both make sense to me, but can we make these also as the same logic?