Package com.independentsoft.graph

# Class HttpHeader

java.lang.Object
com.independentsoft.graph.HttpHeader

public class HttpHeader extends Object
Represents an HTTP header name-value pair.

HTTP headers are used to pass additional information with requests and responses. This class is used to set custom headers for Microsoft Graph API requests.

Since:
  1.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HttpHeader()`
  Default constructor.
  `HttpHeader​(String name, String value)`
  Constructs an HTTP header with a name and value.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`
  Gets the header name.
  `String`
  `getValue()`
  Gets the header value.
  `void`
  `setName​(String name)`
  Sets the header name.
  `void`
  `setValue​(String value)`
  Sets the header value.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### HttpHeader

    public HttpHeader()
    Default constructor.

  - ### HttpHeader

    public HttpHeader​(String name, String value)
    Constructs an HTTP header with a name and value.
    Parameters:
      `name` - The header name (e.g., "Content-Type", "Authorization")
      `value` - The header value

- ## Method Details

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getName

    public String getName()
    Gets the header name.
    Returns:
      The header name

  - ### setName

    public void setName​(String name)
    Sets the header name.
    Parameters:
      `name` - The header name

  - ### getValue

    public String getValue()
    Gets the header value.
    Returns:
      The header value

  - ### setValue

    public void setValue​(String value)
    Sets the header value.
    Parameters:
      `value` - The header value