Implement Pluggable HTTP Adapter

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a Developer
      I want the driver to use my injected http adapter to issue http requests.
      So that I can connect to MongoDB in environments where node http module is not available.

      User Experience

      • Driver uses provided http adapter instead of require('http').

      Acceptance Criteria

      Implementation Requirements

      • Remove import: remove require('http') from all places inside src folder.
      • Use http adapter provided with the mongo client options.

      Testing Requirements

      • Existing integration tests should pass when custom http adapter is provided, no node:http should be imported.

      Documentation Requirements

      • DOCSP ticket, API docs, etc

      Follow Up Requirements

      • additional tickets to file, required releases, etc
      • if node behavior differs/will differ from other drivers, confirm with dbx devs what standard to aim for and what plan, if any, exists to reconcile the diverging behavior moving forward

            Assignee:
            Unassigned
            Reporter:
            Sergey Zelenov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: