Skip to content

Commit 4dab33a

Browse files
authored
Update README.md
1 parent a2dff60 commit 4dab33a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ Base Retrofit& Rxjava Encapsulates the request of the tools
1919

2020
RetrofitClient.getInstance(context).createBaseApi().post("you path url"
2121
,maps, maps, new Subscriber<IpResult>());
22+
# JSON
23+
24+
   
25+
      RequestBody jsonbody = RequestBody.create(okhttp3.MediaType.parse("application/json; charset=utf-8"), new Gson().toJson(user));
26+
27+
    RetrofitClient.getInstance(MainActivity.this).createBaseApi().json("url", jsonBody, new BaseSubscriber<T>(context) {
28+
29+
}
30+
                   
2231

2332
#UpLoad
2433

0 commit comments

Comments
 (0)