add dopts.onresponse support
1.3.1