is it right? how can I resolve it?
I started using restify last night to flesh out a replacement for something I've been doing, within minutes I was really pleased with the results. Feels like this will make my life a tad easier, so thanks very much!
@barisbalic what were you using before?
@nelsonic you're everywhere!
Was tempted to throw express at the problem, but was expecting some impedance when it came to auth, access control, rate limiting, etc. But handlers and the call chaining will make it all trivial
Quick question: is it possible create a separate route object and then add it to a server object via use(), similar to Express? It would be nice to group routes and define middleware for that group in an isolated manner.
@mcavage I am using restify for a couple of APIs, each of which will expose an endpoint then pipe the request through a series of middlewares, some decorate the request for later stages in the pipeline, others decorate the response. I'm not particularly happy about the way I'm arbitrarily adding to the response, but I can't think of a better way to do this. I am also using the on('after') callback to actually return the response, because I always have the ready-built response by the end of the pipeline.
Hey, is the underlying Router exposed so I can chain my routes off of it, Express style?
Also, does Restify not respect the order of middleware?
hey guys, I use the audit plugin in my app. I noticed recently that there are several log entries without a remoteAddress set. Why would that be? From the little snooping of the code that I did, I saw that the audit plugin uses req.connection.remoteAddress - should I manually patch it and use the request-ip module instead?
Hi, I'm continuously getting a "405 Method Not Allowed" when using restify with aurelia. Nothing in this restify/node-restify#284 seems to do the trick. Anyone have a second to help out here?
Anyone here familiar with the 'after' event callback? I suspect it is firing before my last middleware has finished doing it's bit.
I have a client application that can't handle 404/403/etc - it's just a generic undifferentiated error so it can't process it properly. Is there a name for an API that returns 200 with the code as a message instead?
I just submitted PR #896 and all of the tests run locally, however, they fail on CI. I had to make a slight revision and I think something is being cached now. Has anyone run into this?
weird, I did a fresh clone and checked out my branch and now the tests fail, but they worked on my machine prior to that, womp womp
Hi, I am having some issues when I try to send many POST requests, where the server doesn't allow us to send more than 300 messages at the same time, which is the number of connections it has configured on its end.
Is there some setting in the rectify client to reuse the same connection or to close the connection?