add bodyEntity
This commit is contained in:
@@ -3,6 +3,7 @@ package com.imyeyu.network;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.imyeyu.java.bean.timi.TimiResponse;
|
||||
import org.apache.hc.client5.http.fluent.Request;
|
||||
import org.apache.hc.core5.http.HttpEntity;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -58,6 +59,12 @@ public class TimiRequest extends GsonRequest {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TimiRequest bodyEntity(HttpEntity entity) {
|
||||
super.bodyEntity(entity);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String asString() throws IOException {
|
||||
return resultAs(String.class);
|
||||
|
||||
Reference in New Issue
Block a user