Description
To @danmactough and other Node mentors of mine,
I call your attention to delegateRequest, a function inside PagePark.
https://github.com/scripting/pagePark/blob/master/pagepark.js#L648
It works and it's deployed so I have to be careful about not breaking it.
But there's a problem -- pagePark has a set of renderings it does based on the file extension.
For example, when a request comes in for a .opml file, it renders it like this.
When I make a request via xxx, I get the raw unprocessed OPML.
I don't want to just send back the result, I want to first put it through the filters, and return that result.
I think perhaps what I have to do is just request the source file, and then return it exactly as if I had read it from the local hard disk. I think perhaps for the processing I'm doing I can't use a straight pipe.
I understand that this would increase the memory overhead of PP, but that's consistent with its approach, I want to create a higher level server, inching toward the server we have in Frontier...