Package com.microsoft.kiota.http
Class HeadersCompatibility
java.lang.Object
com.microsoft.kiota.http.HeadersCompatibility
Compatibility class to bridge OkHttp Headers and Kiota Headers
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.microsoft.kiota.RequestHeadersgetRequestHeaders(okhttp3.Headers headers) INTERNAL METHOD, DO NOT USE DIRECTLY Get the request headers from the okhttp3 headers and convert them to a RequestHeaders objectstatic com.microsoft.kiota.ResponseHeadersgetResponseHeaders(okhttp3.Headers headers) INTERNAL METHOD, DO NOT USE DIRECTLY Get the response headers from the okhttp3 headers and convert them to a ResponseHeaders object
-
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
-