Simplified handler interface, added ability to construct custom headers