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
Renamed the story to "Spike: Create a custom Sequence in JSLB4".
I think it's important to change the default request processing in the new Sequence class, otherwise there is no point in having a custom sequence IMO. To keep this simple, I am proposing to add a minimal request logging.
classMySequence{// ...asynchandle(context: RequestContext){try{const{request, response}=context;constroute=this.findRoute(request);constargs=awaitthis.parseParams(request,route);constresult=awaitthis.invoke(route,args);this.send(response,result);}catch(error){this.reject(context,error);}// Example log:// GET /products 200 OKconsole.log(request.method,request.url,response.statusCode,response.statusMessage,);}
Follow up task for #1978.
Acceptance criteria
a. Should be created as a class
b. Demonstrate usage with JSLB4 Application class
The text was updated successfully, but these errors were encountered: