resolve response inside method function, use handler based language