Interface HttpConnection

  • All Superinterfaces:
    AutoCloseable

    public interface HttpConnection
    extends AutoCloseable
    Wrapper for an open HTTP protocol connection.
    Author:
    Stephan Fuhrmann
    • Method Detail

      • getHeaderFields

        Map<String,​List<String>> getHeaderFields()
        Get the response header fields from the HTTP server.
        Returns:
        a map with the keys being headers field names and the values being header field values. If a header field is given multiple times the value list will contain all values.
      • getContentType

        String getContentType()
        Get the content type of the stream.
        Returns:
        the content type, for example "audio/mpeg", or null if not sent by the server.