You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, currently notFound handler does not support .header, .status, etc, so this method definition is correct currently, users can send at high-performance as i remember something was caused this leave this method as is.
On PRO version (PRO is re-written simple version) the bug is fixed by using Route instance, in free version there no Route instance.
So, let's finalize:
Declaration was defined correctly
Not found handler works
Who needs modifications, uses uWS Http(Request, Response) instances to get what they need
You did not understand me. I was complaining about an parameter order. All methods have (req, res), but this particular method has opposite order (res, req). Good API is consistent.
Every method in API has this sequence: req, res but notFound handler has an opposite
type HttpRoute = (
req: HttpRequest,
res: HttpResponse,
next?: Function,
config?: object,
previousMiddlewareResult?: any
) => any;
There is not much users yet, so you can break a backward compatibility and unify it.
The text was updated successfully, but these errors were encountered: