Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IXMLHTTPRequest2::SetCustomResponseStream method

Provides a custom stream to replace the standard stream for receiving an HTTP response.

Syntax


HRESULT SetCustomResponseStream(
   ISequentialStream *pSequentialStream
);

Parameters

pSequentialStream

Custom stream that will receive the HTTP response. ISequentialStream

Return value

Returns S_OK on success.

Remarks

After this method is called, IXMLHTTPRequest2 will call the ISequentialStream::Write method when it receives response data from the server. You can begin processing the data at that time, but avoid heavy processing because the call is made inline to receiving further data from the server. Because this IXMLHTTPRequest2 never calls ISequentialStream::Read on the custom stream, it is safe to return E_NOTIMPL if the application does not need to use ISequentialStream::Read.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Version

MSXML 6.0 and later

Header

Msxml6.h

IDL

Msxml6.idl

See also

ISequentialStream Interface
IXMLHTTPRequest2

 

 

Community Additions

Show:
© 2017 Microsoft