com.microsoft.kiota.http.middleware.options.TelemetryHandlerOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft-kiota-http-okHttp Show documentation
Show all versions of microsoft-kiota-http-okHttp Show documentation
Microsoft Kiota-Http with okHttp
package com.microsoft.kiota.http.middleware.options;
import com.microsoft.kiota.RequestOption;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import okhttp3.Request;
import java.util.function.Function;
/**
* TelemetryHandlerOption class
*/
public class TelemetryHandlerOption implements RequestOption {
/** Creates a new instance of the TelemetryHandlerOption class */
public TelemetryHandlerOption() {}
/**
* A delegate which can be called to configure the Request with desired telemetry values.
*/
@Nullable public Function telemetryConfigurator = (request) -> request;
/** {@inheritDoc} */
@Override
@SuppressWarnings("unchecked")
@Nonnull public Class getType() {
return (Class) TelemetryHandlerOption.class;
}
}