HCHttpCallRequestSetRetryAllowed

Sets if retry is allowed for this HTTP call.

Syntax

HRESULT HCHttpCallRequestSetRetryAllowed(  
         HCCallHandle call,  
         bool retryAllowed  
)  

Parameters

call   _In_opt_
Type: HCCallHandle

The handle of the HTTP call. Pass nullptr to set the default for future calls.

retryAllowed   _In_
Type: bool

If retry is allowed for this HTTP call.

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, or E_FAIL.

Remarks

Defaults to true. This must be called prior to calling HCHttpCallPerformAsync.

Requirements

Header: httpClient.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpClient