https://www.elastic.co/security-labs/a-wretch-client