Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Alguma alternativa ao request? #48

Open
uilhianet opened this issue Feb 3, 2022 · 3 comments
Open

Alguma alternativa ao request? #48

uilhianet opened this issue Feb 3, 2022 · 3 comments

Comments

@uilhianet
Copy link

O mesmo está descontinuado faz bastante tempo.

@GabrielMachado11
Copy link

usei o repo como base em outra aplicação, substitui o request pelo axios

const response = await axios.post(params.url, body, {
        headers: {
          'Content-Type': 'text/xml;charset=utf-8',
          SOAPAction: params.action,
        },
        httpsAgent: new https.Agent({
          pfx: fs.readFileSync(filePathCertificate),
          passphrase: certificatePassphrase,
          rejectUnauthorized: false,
        }),
      })

@lealhugui
Copy link
Owner

Podemos substituir sim.

Se voces quiserem, podem fazer uma PR que eu avalio ;)

@lealhugui
Copy link
Owner

See #49

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants