All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bumptech.glide.load.model.Headers Maven / Gradle / Ivy

Go to download

A fast and efficient image loading library for Android focused on smooth scrolling.

There is a newer version: 5.0.0-rc01
Show newest version
package com.bumptech.glide.load.model;

import java.util.Collections;
import java.util.Map;

/**
 * An interface for a wrapper for a set of headers to be included in a Glide request.
 *
 * 

Implementations must implement equals() and hashcode().

*/ public interface Headers { /** * An empty Headers object that can be used if users don't want to provide headers. * * @deprecated Use {@link #DEFAULT} instead. */ @Deprecated Headers NONE = new Headers() { @Override public Map getHeaders() { return Collections.emptyMap(); } }; /** * A Headers object containing reasonable defaults that should be used when users don't want * to provide their own headers. */ Headers DEFAULT = new LazyHeaders.Builder().build(); /** * Returns a non-null map containing a set of headers to apply to an http request. */ Map getHeaders(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy