added http-module api compatiblity