Freigeben über


IHttpClient Interface

public interface IHttpClient

Interface to be implemented when configuring http client for IPublicClientApplication or IConfidentialClientApplication.

For more details, see https://aka.ms/msal4j-http-client

Method Summary

Modifier and Type Method and Description
abstract IHttpResponse send(HttpRequest httpRequest)

Should implement execution of outgoing HTTP request with HTTP client of choice.

Method Details

send

public abstract IHttpResponse send(HttpRequest httpRequest)

Should implement execution of outgoing HTTP request with HTTP client of choice. Adapts response returned from HTTP client to IHttpResponse

Parameters:

httpRequest - HttpRequest

Returns:

Throws:

java.lang.Exception - Non-recoverable exception. Recoverable exceptions should be handled by the IHttpClient implementation

Applies to