call on_headers and on_body when stubbed.