Enable proxying a request from azure blob storage to an incoming request #12

Closed
saary opened this Issue Dec 15, 2011 · 6 comments

5 participants

@saary

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.

@andrerod

Sounds like something to look at.

@andrerod andrerod was assigned Dec 16, 2011
@andrerod

We're now raising a response event when we get the headers.

@markcowl markcowl was assigned Sep 15, 2012
@xuezhai xuezhai was assigned Mar 7, 2013
@markcowl
Microsoft Azure member

@andrerod Can you point us at the unit tests you used to verify this issue was fixed?

@markcowl
Microsoft Azure member

This would be a great sample app

@andrerod

This is not fixed. It was incorrectly marked as ready for test.

@andrerod

It shouldnt even be in the sprint. moving to backlog.

@glennblock glennblock closed this Jun 26, 2013
@xuezhai xuezhai was unassigned by saary Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment