@Override
public void addKill(Death death) {
try {
HttpResponse<JsonNode> jsonResponse = Unirest.post(config.getBaseUrl() + "/mc/death/new")
.header("x-access-token", config.getAuthToken())
.header("accept", "application/json")
.header("Content-Type", "application/json")
.body(death)
.asJson();
} catch (UnirestException e) {
e.printStackTrace();
}
}
HttpClient.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:Warzone
作者:
评论列表
文章目录