Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static request(): Request {
return {
url: 'https://algolia-dns.net/foo?x-algolia-header=bar',
method: MethodEnum.Post,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
data: JSON.stringify({ foo: 'bar' }),
timeout: 2,
};
}
}
public static request(): Request {
return {
url: 'https://algolia-dns.net/foo?x-algolia-header=foo',
method: MethodEnum.Post,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
data: JSON.stringify({ foo: 'bar' }),
timeout: 2,
};
}
}