So i came across this quite old gist that lets you inject a http handler into a bukkit server. I was trying to make it work with forge but with no success, thought you guys might know better if that even possible.
Here's why: i made a mod that enables server owners to write some simple logic in javascript, whether it is custom command on the server or some hud texture rendering on client. The point is, they should be loaded before connecting to the server and unloaded when player leaves the server. This way two servers can have separate set of scripts, you get the idea. For now i implemented it with regular forge packets, means that when player joins it receives a pretty big packet. The problem i have so far is max packet size since i need to send textures, its somewhere around 2MB in 1.7.10 (even less in 1.8+), and i really don't want to split them in multiple packets... HTTP handler could kinda solve that, but what is more important is caching. That would be pain in the ass to do with minecraft packets.
P.S. Minecraft version is 1.7.10 if that makes any difference