Skip to content

Legacy API of Agent.prototype.addRequest() #11756

@vsemozhetbyt

Description

@vsemozhetbyt
  • Subsystem: http

Agent.prototype.addRequest() in the _http_agent.js checks for a Legacy API with a string type of the options parameter. However, this method called only with this call chain:

http.request() in http.js -> exports.ClientRequest() in _http_client.js -> Agent.prototype.addRequest() in the _http_agent.js.

On the ClientRequest() stage any string is converted to Object.

Is there any reason to keep this Legacy API check in the Agent.prototype.addRequest()? Is this function called from a userland or in any other way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpIssues or PRs related to the http subsystem.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions