WindowsAzure/azure-sdk-for-node — Issue #12: Enable proxying a request from azure blob storage to an incoming request
Author: saary
Created: 2011-12-15 23:25:58+00:00
State: open

Today when using ServiceClient.performRequestInputStream (from cloudblobclient) it is impossible to relay the actual response headers into an incoming request stream.

To circumvent this we added the following line in beginning of the http.request callback :
writeStream.emit('start', response);

This allows us to copy the response headers into the incoming request response stream. Otherwise we are not able to relay the headers and status code.

It would be nice if you would support this directly with a dedicated method of the form:
ServiceClient.proxyRequest(requestParameters, rawData, incomingResponse, callback)
or by adding a dedicated prewrite event as the once we have added which allows the users to add this functionality themselves.