XrpcClient
Ktor-backed XRPC client. Wraps a caller-supplied HttpClient so consumers control the engine, timeouts, retries, and logging. Generated XRPC bindings call query for GET /xrpc/<nsid> and procedure for POST /xrpc/<nsid>.
Auth is attached via a pluggable AuthProvider, never as a field on request DTOs. Override per-call with the auth parameter.
Parameters
Root URL of the PDS / AppView, e.g. https://bsky.social. No trailing /xrpc — the client appends it.
Constructors
Functions
Overload for procedures with no input body (e.g. deleteSession).
Overload for procedures whose lexicon declares a non-JSON input.encoding (e.g. image/jpeg, video/mp4, or the wildcard */* used by com.atproto.repo.uploadBlob). The bytes are posted verbatim with the supplied inputContentType. Auth, DPoP, 401 retry, and error mapping behave identically to the JSON-body overload.