Interface HttpTransport.Response

All Superinterfaces:
AutoCloseable, Closeable
Enclosing interface:
HttpTransport

public static interface HttpTransport.Response extends Closeable
An HTTP operation response.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the content of the response.
    default org.apache.hc.core5.http.Header
     

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • getContent

      InputStream getContent() throws IOException
      Return the content of the response.
      Returns:
      the response content
      Throws:
      IOException - on IO error
    • getHeader

      default org.apache.hc.core5.http.Header getHeader(String name)