Skip to main content

HCHttpCallRequestGetDynamicBytesWritten

Gets the dynamic request body size and the bytes written so far for an HTTP call. Custom HTTP implementations use these values for upload progress reports.

Syntax

Parameters

call   _In_
Type: HCCallHandle
The handle of the HTTP call. dynamicBodySize   _Out_
Type: size_t*
Receives the dynamic request body size, in bytes. Receives 0 if the title didn’t set a dynamic size. dynamicBodyBytesWritten   _Out_
Type: size_t*
Receives the total bytes that the title reported as written.

Return value

Type: HRESULT Returns S_OK on success, or E_INVALIDARG if any parameter is nullptr.

Remarks

The title sets the dynamic size with HCHttpCallRequestSetDynamicSize and reports progress with HCHttpCallRequestAddDynamicBytesWritten. Both functions are declared in httpClient.h. If dynamicBodySize is 0, report upload progress from the standard request body size instead. If it’s greater than 0 and the title registered an upload progress callback, pass dynamicBodyBytesWritten and dynamicBodySize to the callback returned by HCHttpCallRequestGetProgressReportFunction. Progress callbacks are invoked only when one is registered.

Requirements

Header: httpProvider.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

httpProvider
HCHttpCallResponseGetDynamicBytesWritten
HCHttpCallRequestGetProgressReportFunction
Last modified on October 30, 2026