Interface HttpResponse

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface HttpResponse.Handler
    • 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 Integer statusCode()
      abstract Headers headers()
      Optional<String> requestId() Returns the value of the x-request-id header, or an empty Optional if there's no such header in the response.
      abstract InputStream body()
      abstract Unit close() Overridden from AutoCloseable to not have a checked exception in its signature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait