Interface HttpClient

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    JavaHttpClient, UrlConnectionClient

    public interface HttpClient
    extends java.lang.AutoCloseable
    Simple Http client to make REST calls.

    Assumptions: - always send/receive JSON - set headers accordingly by default - very simple interactions w/ API - no cookies - no caching of connections. Could be slow

    • Method Detail

      • getBaseUri

        java.net.URI getBaseUri()
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable