org.apache.olingo.client.api.communication.header

## Interface ODataHeaders

-     public interface ODataHeaders

  ODataHeaders wraps OData request/response headers.
  See Also:
    `ODataRequest`, `ODataResponse`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getHeader(String name)` Gets the value of the header identified by the given name.
    `Collection<String>` | `getHeaderNames()` Gets header names.
    `String` | `removeHeader(String name)` Removes the header identified by the given name.
    `ODataHeaders` | `setHeader(String name, String value)` Add the specified (custom) header (header name is case-insensitive).

- - ### Method Detail

    - #### getHeader

          String getHeader(String name)

      Gets the value of the header identified by the given name.
      Please note that header name is case-insensitive.
      Parameters:
        `name` - name of the header to be retrieved.
      Returns:
        header value.

    - #### getHeaderNames

          Collection<String> getHeaderNames()

      Gets header names.
      Please note that header name is case-insensitive.
      Returns:
        header names.

    - #### setHeader

          ODataHeaders setHeader(String name,
                                 String value)

      Add the specified (custom) header (header name is case-insensitive).
      Parameters:
        `name` - header key.
        `value` - header value.
      Returns:
        the current updated header instance.

    - #### removeHeader

          String removeHeader(String name)

      Removes the header identified by the given name.
      Please note that header name is case-insensitive.
      Parameters:
        `name` - name of the header to be retrieved.
      Returns:
        header name (if found).

Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.