HCHttpCallRequestSetRetryCacheId

ID number of this REST endpoint used to cache the Retry-After header for fast fail.

Syntax

HRESULT HCHttpCallRequestSetRetryCacheId(  
         HCCallHandle call,  
         uint32_t retryAfterCacheId  
)  

Parameters

call   _In_opt_
Type: HCCallHandle

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

retryAfterCacheId   _In_
Type: uint32_t

ID number of this REST endpoint used to cache the Retry-After header for fast fail. 1-1000 are reserved for XSAPI.

Return value

Type: HRESULT

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

Remarks

This must be called prior to calling HCHttpCallPerformAsync.

Requirements

Header: httpClient.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpClient