HCHttpCallResponseSetHeaderWithLength

Set a response header for the HTTP call.

Syntax

HRESULT HCHttpCallResponseSetHeaderWithLength(  
         HCCallHandle call,  
         const char* headerName,  
         size_t nameSize,  
         const char* headerValue,  
         size_t valueSize  
)  

Parameters

call   _In_
Type: HCCallHandle

The handle of the HTTP call.

headerName   _In_reads_(nameSize)
Type: char*

UTF-8 encoded response header name for the HTTP call.

nameSize   _In_
Type: size_t

The length in bytes of the header name string.

headerValue   _In_reads_(valueSize)
Type: char*

UTF-8 encoded response header value for the HTTP call.

valueSize   _In_
Type: size_t

The length in bytes of the header value string.

Return value

Type: HRESULT

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

Requirements

Header: httpProvider.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpProvider