Share via


HCHttpCallRequestEnableGzipCompression

Enable GZIP compression on the provided body payload.

Syntax

HRESULT HCHttpCallRequestEnableGzipCompression(  
         HCCallHandle call,  
         HCCompressionLevel level  
)  

Parameters

call   _In_
Type: HCCallHandle

The handle of the HTTP call.

level   _In_
Type: HCCompressionLevel

The desired compression level.

Return value

Type: HRESULT

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

Remarks

This must be called prior to calling HCHttpCallPerformAsync.

Requirements

Header: httpClient.h

Library: libHttpClient.GDK.lib

See also

httpClient