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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -