类 Response

java.lang.Object
xyz.migoo.simplehttp.Response

public class Response extends Object
作者:
xiaomi
  • 构造器详细资料

    • Response

      public Response()
  • 方法详细资料

    • response

      public Response response(org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response) throws Exception
      抛出:
      Exception
    • statusCode

      public int statusCode()
    • headers

      public org.apache.hc.core5.http.Header[] headers()
    • startTime

      public long startTime()
    • endTime

      public long endTime()
    • duration

      public long duration()
    • getContext

      public org.apache.hc.client5.http.protocol.HttpClientContext getContext()
    • bytes

      public byte[] bytes()
    • text

      public String text()
    • cookies

      public List<org.apache.hc.client5.http.cookie.Cookie> cookies()