Interface Headers

  • All Known Implementing Classes:
    LazyHeaders

    public interface Headers
    An interface for a wrapper for a set of headers to be included in a Glide request.

    Implementations must implement equals() and hashcode().

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Headers DEFAULT
      A Headers object containing reasonable defaults that should be used when users don't want to provide their own headers.
      static Headers NONE
      Deprecated.
      Use DEFAULT instead.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getHeaders()
      Returns a non-null map containing a set of headers to apply to an http request.
    • Field Detail

      • NONE

        @Deprecated
        static final Headers NONE
        Deprecated.
        Use DEFAULT instead.
        An empty Headers object that can be used if users don't want to provide headers.
      • DEFAULT

        static final Headers DEFAULT
        A Headers object containing reasonable defaults that should be used when users don't want to provide their own headers.
    • Method Detail

      • getHeaders

        java.util.Map<java.lang.String,​java.lang.String> getHeaders()
        Returns a non-null map containing a set of headers to apply to an http request.