Open salasia opened 7 years ago
Just add the headers to any of the flow request objects.
var flow = {
main: [
{ put: 'http://localhost:8000/foo_#{INDEX}', json: 'mydata_#{INDEX}' },
{
get: 'http://localhost:8000/foo_#{INDEX}',
headers: {
'User-Agent': 'request'
}
}
]
};
Since it uses request as the http client, it supports any of the options request supports.
how to api call with headers ? Type erros: