weex里的stream只能发送get,post请求。
发送delete,put等调用restful API的后台应该怎么办?
尝试用vue-resource,在Web下是没有问题的,android下验证失败,也许是姿势不对。
求正确姿势。。。。
weex里的stream只能发送get,post请求。
发送delete,put等调用restful API的后台应该怎么办?
尝试用vue-resource,在Web下是没有问题的,android下验证失败,也许是姿势不对。
求正确姿势。。。。
Content-Type是application/x-www-form-urlencoded的时候,居然post等请求的body只能写成这样
body:"userName=xxxx&mobile=xxxx"
delete 没试过 不过put在 headers 里面加 "Content-Type":'application/x-www-form-urlencoded' 就好
需要看一下原生代码的实现,看一下HttpAdapter默认是否支持,如果不支持,需要自己自定义HttpAdapter,然后设置成自己的Adapter就可以了。