Skip to content

Document custom HTTP clients#541

Open
simolus3 wants to merge 3 commits into
mainfrom
custom-http-clients
Open

Document custom HTTP clients#541
simolus3 wants to merge 3 commits into
mainfrom
custom-http-clients

Conversation

@simolus3

@simolus3 simolus3 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Some SDKs (Dart, Kotlin, Swift and Rust as far as I know) support configuring the HTTP client they use internally to connect to the PowerSync service. For the Rust SDK, specifying a custom HTTP client is required as the SDK does not provide a default.

Some users self-hosting the PowerSync Service behind e.g. Cloudflare asked for support for custom HTTP headers to support those deployments. This documents how this can be configured for Kotlin, Dart and Swift. This is added to the respective page for each SDK instead of as a usage example since the setup is very SDK-specific (similar to the logging configuration) and not supported by all SDKs. I've not added explicit documentation for the Rust SDK here since an HTTP client is required and the setup section mentions this. So it's obvious that a custom HTTP client can be used there.

AI use: Manual changes, with minor style improvements from the Claude auto-review here.

@mintlify

mintlify Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
powersync 🟢 Ready View Preview Jul 20, 2026, 1:52 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment thread client-sdks/reference/flutter.mdx Outdated
Comment thread client-sdks/reference/kotlin.mdx Outdated
Comment thread client-sdks/reference/swift.mdx Outdated
Comment thread client-sdks/reference/flutter.mdx Outdated
Comment thread client-sdks/reference/flutter.mdx Outdated
Comment thread client-sdks/reference/kotlin.mdx Outdated
Comment thread client-sdks/reference/kotlin.mdx Outdated
Comment thread client-sdks/reference/kotlin.mdx Outdated
Comment thread client-sdks/reference/swift.mdx Outdated
Comment thread client-sdks/reference/flutter.mdx Outdated
@mintlify

mintlify Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
powersync 🟡 Building Jul 20, 2026, 1:51 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@simolus3
simolus3 requested a review from benitav July 20, 2026 15:46
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.

1 participant