javascript - Node.js http.request append header -


hi piping readable stream x var req = http.request object. thing want append header after read data x.

can append headers req object after creation (headers given in option parameter http.request(options, callback) function.

i want asynchronously each read x thats why cannot send header in option.

ok seems i've found solution. since http.request returns http.clientrequest object has setheader(name, value) method, can use after create request.

now think nooby question, moderators decide it.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -