Skip to content

Document custom HTTP clients - #541

Merged
simolus3 merged 6 commits into
mainfrom
custom-http-clients
Jul 29, 2026
Merged

Document custom HTTP clients#541
simolus3 merged 6 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.

Comment thread client-sdks/reference/flutter.mdx Outdated
Comment thread client-sdks/reference/kotlin.mdx Outdated
Comment thread client-sdks/reference/swift.mdx Outdated
@simolus3
simolus3 force-pushed the custom-http-clients branch from 87e9e2b to c3bd900 Compare July 29, 2026 11:42
@simolus3
simolus3 merged commit 76faa1b into main Jul 29, 2026
4 checks passed
@simolus3
simolus3 deleted the custom-http-clients branch July 29, 2026 11:44
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.

2 participants