Skip to content

Transform response node into a Promise? or rxjs Observable? #18

@nahuel-soldevilla

Description

@nahuel-soldevilla

(Logging some features discussed during the hackaton, which are not currently available at least to my knowledge)

Provide an api like Observable.toPromise()

Possible use case: use async await syntax. E.g (angular httpclient)

      const res = await this.http.post(this.context.destination + '/germplasm', request, {
        headers: {
          Authorization: 'Bearer ' + this.context.destinationToken
        }
      }).toPromise();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions