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
Post a Comment