Http closures for structuring handlers.