Skip to content

[Discussion] HttpPromiseModule, promise support for http module #2613

Closed
@BrodySmithPS

Description

@BrodySmithPS

Feature Request

Is your feature request related to a problem? Please describe.

I don't like using observables for http requests. I would like to see the "option" of using Promises. This issue sums up my feelings on the matter perfectly #471

Describe the solution you'd like

I've created a HttpPromiseModule in my project that mirrors the HttpModule but without the Observable wrapping. This module is a lot easier to work with and matches the coding style on the backend better. I have a PR I can submit if you want to see the code.

Teachability, Documentation, Adoption, Migration Strategy

You use it the exact same way as the HttpModule except you use the HttpPromiseModule

What is the motivation / use case for changing the behavior?

Observables for http feels wrong/overkill. Tired of adding .toPromise() on all my http requests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions