MCPcopy Create free account
hub / github.com/FongMi/TV / getJsonBody

Method getJsonBody

quickjs/src/main/java/com/fongmi/quickjs/utils/Connect.java:76–78  ·  view source on GitHub ↗
(Req req)

Source from the content-addressed store, hash-verified

74 }
75
76 private static RequestBody getJsonBody(Req req) {
77 return RequestBody.create(req.getData().toString(), MediaType.get("application/json; charset=utf-8"));
78 }
79
80 private static RequestBody getFormBody(Req req) {
81 FormBody.Builder builder = new FormBody.Builder();

Callers 1

getPostBodyMethod · 0.95

Calls 4

createMethod · 0.45
toStringMethod · 0.45
getDataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected