Skip to content

Remove the deprecated request package #1363

@waldekmastykarz

Description

@waldekmastykarz

Since the request package has been deprecated, we should refactor the code to either use an alternative or standard Node.js functionality. The latter would be preferable to avoid unnecessary dependencies, but we need to verify if the effort to use the standard capabilities, which are often more verbose, outweigh the cost of an extra dependency.

Things to verify during the refactoring:

  • GET
  • POST
  • PATCH
  • PUT
  • DELETE
  • parsing objects to JSON strings in requests
  • parsing JSON strings to objects in responses
  • gzip compressing requests
  • gzip decompressing responses
  • setting additional request headers
  • supporting promises
  • automatically setting user agent on all requests
  • automatically enabling compression on all requests
  • automatically adding bearer token to all requests
  • allowing anonymous requests
  • support binary responses
  • support specifying proxy

Ideally, the refactoring should be done in a way that doesn't require us to refactor all commands issuing requests.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions