HttpResponse<JsonNode> response = Unirest.get("https://api.example.com/users") .header("Content-Type", "application/json") .queryString("pageNumber", "1") .asJson(); HttpResponse<JsonNode> response = Unirest.post("https://api.example.com/users") .header("Content-Type", "application/json") .body("{\"name\":\"John\", \"email\":\"john@example.com\"}") .asJson();


上一篇:
下一篇:
切换中文