接口 AsyncHTTPResponseHandler<T>

  • 类型参数:
    T -

    public interface AsyncHTTPResponseHandler<T>
    Consumer the response body, and when consumer finished, return the transformed value. The implementations should not block caller thread.
    • The onHeader() method would be called first, when http headers has been fully received.
    • Then may call onBodyChunk() method one or more time
    • Then onBodyEnd() method would be called to fetch the result