HTTP Client
CDM Http Client is an HTTP client that implements retry logic to execute retries.
public class CdmHttpClient
Constructors
Name | Description |
---|---|
CdmHttpClient(string, HttpMessageHandler) apiEndpoint: Optional API endpoint. handler: Optional HTTP message handler, handler can be changed to support testing and so on. |
Initializes a new instance of the CdmHttpClient class. |
Properties
Name | Type | Description |
---|---|---|
Callback(CdmHttpResponse, bool, int) response: The CDM Http response. hasFailed: Denotes whether a request has failed. retryNumber: The number of retries happened (starting from 1). |
delegate | The callback function that gets called after the request is finished in CDM Http client. |
Methods
Name | Description | Return Type |
---|---|---|
SendAsync(CdmHttpRequest, Callback, CdmCorpusContext) cdmRequest: The CDM Http request. callback: The callback that gets executed after the request finishes. ctx: The corpus context. |
Send a CDM request with the retry logic and returns an HTTP response. | Task<CdmHttpResponse> |
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor