Class ImageFromHeadersFunction

  • All Implemented Interfaces:
    Function<HttpResponse,​Image>

    public class ImageFromHeadersFunction
    extends Object
    implements Function<HttpResponse,​Image>
    When retrieving a specific image the Glance API returns headers in the response. This function is responsible for parsing the headers into an Image.
    Author:
    Jeremy Unruh