Skip to content

Mirror typed-rest-client options #604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

DmitriiBobreshev
Copy link
Contributor

@DmitriiBobreshev DmitriiBobreshev commented Aug 7, 2024

Description:
The PR mirroring IRequestOptions from typed-rest-client.
This is needed, because VsoBaseInterfaces.IRequestOptions uses with WebApi and ClientApiBases which is, basically, wrappers for typed-rest-client's HttpClient and RestClient.

Also, this is potential fix for the problem with 5sec timeout.
Since node19 http.GlobalAgent has 5 sec timeout which might be too short for Azure REST API.
By adding keppAlive request option we assign to request own agent with null timeout(as it was previously) instead of global one with 5sec timeout.
In case if proxy will be specified, the specific agent will be created as well without timeout option.

Related WI: AB#2194177

Tested: tested locally

@DmitriiBobreshev DmitriiBobreshev requested review from a team as code owners August 7, 2024 09:44
@DmitriiBobreshev DmitriiBobreshev merged commit be525f3 into master Aug 7, 2024
7 checks passed
@DmitriiBobreshev DmitriiBobreshev deleted the users/v-bobreshevd/mirror-typed-rest-client-options branch August 7, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants