HTTP dispatch functions to use with fun-chain