Interface HttpSocket

  • All Known Implementing Classes:
    HttpSocketImpl

    public interface HttpSocket
    • Method Detail

      • connect

        java.util.concurrent.CompletableFuture<java.lang.Void> connect​(java.net.InetSocketAddress addr)
      • send

        java.util.concurrent.CompletableFuture<HttpFullResponse> send​(HttpFullRequest request)
        This can be used ONLY if 'you' know that the far end does NOT sended a chunked download. The reason is in a chunked download, we don't want to blow up your RAM. Some apis like twitters streaming api and we would never ever be done and have a full response. Others are just a very very large download you don't want existing in RAM anyways.
        Parameters:
        request -
      • close

        java.util.concurrent.CompletableFuture<java.lang.Void> close()
      • isClosed

        boolean isClosed()