Lightweight router and parameter injector for writing http services