Class HttpHeader

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class HttpHeader
     implements Parcelable
                        

    Represents an HTTP header field.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getName() the name of header.
      final String getValue() the value of header.
      final Unit setValue(String value) the value of header.
      final List<String> getValues() Get the comma separated value as an array.
      final Unit addValue(String value) Add a new value to the end of this header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getValues

         final List<String> getValues()

        Get the comma separated value as an array.

        Returns:

        The value of this header that are separated by a comma.

      • addValue

         final Unit addValue(String value)

        Add a new value to the end of this header.

        Parameters:
        value - The value to add.