Class HeadersCompatibility

java.lang.Object
com.microsoft.kiota.http.HeadersCompatibility

public class HeadersCompatibility extends Object
Compatibility class to bridge OkHttp Headers and Kiota Headers
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.microsoft.kiota.RequestHeaders
    getRequestHeaders(okhttp3.Headers headers)
    INTERNAL METHOD, DO NOT USE DIRECTLY Get the request headers from the okhttp3 headers and convert them to a RequestHeaders object
    static com.microsoft.kiota.ResponseHeaders
    getResponseHeaders(okhttp3.Headers headers)
    INTERNAL METHOD, DO NOT USE DIRECTLY Get the response headers from the okhttp3 headers and convert them to a ResponseHeaders object

    Methods inherited from class java.lang.Object

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

    • getResponseHeaders

      @Nonnull public static com.microsoft.kiota.ResponseHeaders getResponseHeaders(@Nonnull okhttp3.Headers headers)
      INTERNAL METHOD, DO NOT USE DIRECTLY Get the response headers from the okhttp3 headers and convert them to a ResponseHeaders object
      Parameters:
      headers - the okhttp3 headers
      Returns:
      the ResponseHeaders object
    • getRequestHeaders

      @Nonnull public static com.microsoft.kiota.RequestHeaders getRequestHeaders(@Nonnull okhttp3.Headers headers)
      INTERNAL METHOD, DO NOT USE DIRECTLY Get the request headers from the okhttp3 headers and convert them to a RequestHeaders object
      Parameters:
      headers - the okhttp3 headers
      Returns:
      the RequestHeaders object