Read the ResponseIt is vital that the response body is always read regardless of the status returned by the server. There are three ways to do this:
Call getRequestData() This will return a raw data containing the data in the response body.1 /** Get the request data pointer back /2inline char getRequestData()这段完全就没法再代码里重现啊,而且getRequestData在官方wiki说明里是“Get the request data pointer back”
不是获取reponese,而是获得request数据的指针。
而且我在代码里用这个函数会直接报错啊
我现在的困惑时,网上不少提到这个库的文章,讲到如何处理返回数据时都是利用那个setResponseCallback里设置的到请求完成的回调函数,但是这样一来整个访问就是异步的,我用什么方法知道访问结束了呢,因为我等待着数据