Joined May 2011
·

ctide

San Francisco, CA
·
·
·

Posted to Rails - Internal Requests over 1 year ago

"Don't ever do this" is terrible advice. Hard and fast rules are never a good idea.

What if you have a batch API endpoint, for example, that needs to be able to process multiple API requests in a single HTTP request? Obviously in that case, you'd want to be able to simulate multiple internal requests without recreating all that code or parsing it.

I'm not saying this is something you generally want to be doing, but to say you should NEVER do it is just as bad.

Achievements
49 Karma
0 Total ProTip Views
Interests & Skills