responseText property
BSTR
get
responseText
Retrieves the response entity body as text.
To learn more, see learn.microsoft.com/windows/win32/WinHttp/iwinhttprequest-responsetext.
Implementation
BSTR get responseText {
final body = adaptiveCalloc<Pointer<Utf16>>();
final hr$ = HRESULT(_get_ResponseTextFn(ptr, body));
if (hr$.isError) {
free(body);
throw WindowsException(hr$);
}
final result$ = body.value;
free(body);
return .new(result$);
}