Skip to content

Get request with options #68

@sihu

Description

@sihu

The current implementation of a get request is like that:

get(path: string): Observable<Response>

The implementation of the @angular/http class is, that you can also pass parameters and things with the get request:

get(url: string, options?: RequestOptionsArgs): Observable<Response>;

This could be used, if you want to add parameters as an object like this:

this.http.get('my/url/path', { search: params }

I would suggest to extend the get request with an optional options-parameter, since this class could be a simple wrapper which just decorates the standard-requests with the headers.

maybe there is a reason why it is not done like that and before i start coding something i wanted to open the discussion. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions