Skip to content

Question Regarding New HTTP Persistent Connection Feature in Web Cmdlets #20713

@JAK1047

Description

@JAK1047

Summary of the new feature / enhancement

One of the changes in 7.4.0 I'm the most excited for is the HTTP Connection Reuse (#19249) primarily to help speed up API calls with pagination where a call might need to be sent to the same endpoint 100+ times to retrieve all results.

A fairly common example of that however is taking advantage of the -FollowRelLink parameter to only have a single Invoke-RestMethod command in my script. I can't find any documentation stating as such, but would that parameter by default take advantage of this new improvement without specifying a WebSession? Since there would rarely be a time you specified that parameter if you were not expecting multiple calls to be made. Or would a dummy call still have to be made first and thrown away just to obtain the WebSession variable for use?

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions