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 final Headers
    A Headers object containing reasonable defaults that should be used when users don't want to provide their own headers.
    static final Headers
    Deprecated.
    Use DEFAULT instead.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a non-null map containing a set of headers to apply to an http request.
  • Field Details

    • 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 Details

    • getHeaders

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