Skip to content

Enable passing custom URL sessions#159

Merged
simolus3 merged 2 commits into
mainfrom
custom-url-session
Jul 15, 2026
Merged

Enable passing custom URL sessions#159
simolus3 merged 2 commits into
mainfrom
custom-url-session

Conversation

@simolus3

Copy link
Copy Markdown
Contributor

This allows passing a custom URLSession instance to SyncClientConfiguration. By creating a custom URL session, one can pass custom delegates observing the request lifecycle, or pass additional headers.

I've thought about exposing a custom http client interceptor instead, but this seems like a nicely minimal API addition that still unblocks custom headers.

Closes #158.

@simolus3
simolus3 requested a review from stevensJourney July 14, 2026 13:41

@stevensJourney stevensJourney left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with these changes

@simolus3
simolus3 merged commit 75e2de2 into main Jul 15, 2026
8 checks passed
@simolus3
simolus3 deleted the custom-url-session branch July 15, 2026 07:52
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.

allow custom headers on powersync connection

2 participants