Skip to content

chore: Simplify making HTTP requests. - #3364

Merged
karlseguin merged 2 commits into
mainfrom
owner-consolidation
Sep 2, 2026
Merged

karlseguin merged 2 commits into
mainfrom
owner-consolidation

Conversation

@karlseguin

Copy link
Copy Markdown
Collaborator

This PR sits ontop of #3293

If you look at #3293, you'll see a relatively contained change that has to touch over 20 files. The issue is that every HttpClient.newRequest needs to provide a lot of data. But newRequest takes a 2nd parameter: the HttpClient.Owner. If we put a bit more information in Owner we can use that as a default for more request fields. For example, we can still allow a caller to pass frame_id but, by default, we can use the owner's frame_id (which is what we want in most cases).

@karlseguin
karlseguin force-pushed the nikneym/samesite-strict-bypass branch from be441b5 to 07198b7 Compare September 1, 2026 23:28
Base automatically changed from nikneym/samesite-strict-bypass to main September 1, 2026 23:54
If you look at #3293, you'll see
a relatively contained change that has to touch over 20 files. The issue is that
every HttpClient.newRequest needs to provide a lot of data. But `newRequest`
takes a 2nd parameter: the HttpClient.Owner. If we make that Owner a little
smarter, we can start to remove some of the individual fields needed in
newRequest. For example, we can still allow a callsite to pass frame_id but,
by default, we can use the owner's frame_id (which is what we want in most
cases).
@karlseguin
karlseguin merged commit 9bbabfe into main Sep 2, 2026
26 checks passed
@karlseguin
karlseguin deleted the owner-consolidation branch September 2, 2026 01:03
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant