explicitly pass HTTP handler state to all HTTP functions