Package 

Interface HttpClient

  • All Implemented Interfaces:

    
    public interface HttpClient
    
                        

    Represents an abstract async HTTP-request dispatcher.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract <T extends Any> Unit send(HttpRequest<T> request, Function1<Result<HttpResponse<T>>, Unit> callback) Sends HTTP-request asynchronously.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • send

         abstract <T extends Any> Unit send(HttpRequest<T> request, Function1<Result<HttpResponse<T>>, Unit> callback)

        Sends HTTP-request asynchronously.

        Parameters:
        request - request to be sent.
        callback - callback with a Result type to be invoked upon completion