dhorsley / za

Za scripting language
https://zalang.org
MIT License
5 stars 1 forks source link

web server proxying - body rewrite rules #19

Open dhorsley opened 2 years ago

dhorsley commented 2 years ago

This is an outstanding @todo.

There is room in the logic in lib-net.go/web_router() function for adding rewrite rules for either link (href) path rewriting or more general body text rewrites under the "w" rule case.

It hasn't been needed yet, but probably would be a fairly minor change to add this capability. It would certainly be possible for this to be a massive overhead in page serving durations.

Would mainly be for correcting certain URI forms that may come back as part of a response body of a page that lives on an alternate host/path or to scrub/amend links.

Leaving this ticket open until we decide if this is worth doing. It's probably overkill for the intended purposes of the inbuilt web serving.

dhorsley commented 11 months ago

still under consideration.