Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Map a timeout header value to options timeout #9399

Copy link
Copy link
Open
@kkoates

Description

@kkoates
Issue body actions

Is your feature request related to a problem? Please describe.
We use swagger to generate our api client that uses HttpRequest from @angular/common/http. When the request is made from this library the nativescript implementation of the request function runs however I have not been able to find a way to supply nativescript's HttpRequestOptions (timeout) because the angular's module doesn't support it. The default timeout in iOS is 60 seconds and unfortunately I have a use case where I need to extend this amount.

Describe the solution you'd like
A solution for this may be to look for a timeout value supplied in the headers of the request and map it if HttpRequestOptions.timeout is not supplied:

https://github.com/NativeScript/NativeScript/blob/master/packages/core/http/http-request/index.ios.ts#L102

Describe alternatives you've considered
I tried various ways of forcing a timeout option into the angular http request object but it doesn't work.

Additional context
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.