Looks like ky
doesn’t have an option for setting request headers, although some GitHub issues that I’ve come across suggests using something like this:
ky.extend({
headers: { 'User-Agent': 'Get REST APi Response! - Your Client!' }
});
Looks like ky
doesn’t have an option for setting request headers, although some GitHub issues that I’ve come across suggests using something like this:
ky.extend({
headers: { 'User-Agent': 'Get REST APi Response! - Your Client!' }
});