(Req req)
| 78 | } |
| 79 | |
| 80 | private static RequestBody getFormBody(Req req) { |
| 81 | FormBody.Builder builder = new FormBody.Builder(); |
| 82 | Map<String, String> params = Json.toMap(req.getData()); |
| 83 | for (String key : params.keySet()) builder.add(key, params.get(key)); |
| 84 | return builder.build(); |
| 85 | } |
| 86 | |
| 87 | private static RequestBody getFormDataBody(Req req) { |
| 88 | String boundary = "--dio-boundary-" + new SecureRandom().nextInt(42949) + new SecureRandom().nextInt(67296); |