HTTP Patch request from Android

后端 未结 4 412
清歌不尽
清歌不尽 2021-02-01 22:28

I\'m trying to do an HTTP Patch request from an Android application and haven\'t been able to figure it out. It looks like PATCH isn\'t supported by HTTPUrlConnection. HttpPat

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 23:04

    It looks like OkHttp supports patch

    Request request = Request.Builder().url().patch().build();
    

提交回复
热议问题