$query * * @return array */ public function get(string $method, array $query = [], ?XrpcOptions $options = NULL): array; /** * Executes a JSON XRPC procedure. * * @param array $payload * * @return array */ public function post(string $method, array $payload = [], ?XrpcOptions $options = NULL): array; /** * Executes an XRPC procedure with a caller-provided body. * * @return array */ public function postRaw( string $method, string|StreamInterface $body, string $contentType = 'application/octet-stream', ?XrpcOptions $options = NULL, ): array; /** * Executes a JSON XRPC request with the selected HTTP method. * * @param array $data */ public function request( string $httpMethod, string $method, array $data = [], ?XrpcOptions $options = NULL, ): XrpcResponse; /** * Executes a JSON XRPC request without a body. * * @param array $query */ public function requestWithoutBody( string $httpMethod, string $method, array $query = [], ?XrpcOptions $options = NULL, ): XrpcResponse; /** * Executes a JSON XRPC request with a caller-provided body. * * @param array $query */ public function requestWithBody( string $httpMethod, string $method, string|StreamInterface $body, string $contentType = 'application/octet-stream', array $query = [], ?XrpcOptions $options = NULL, ): XrpcResponse; /** * Executes an XRPC request and returns its raw response body. * * @param array $data */ public function requestRaw( string $httpMethod, string $method, array $data = [], ?XrpcOptions $options = NULL, ): RawXrpcResponse; /** * Executes an XRPC request without a body and returns its raw response. * * @param array $query */ public function requestRawWithoutBody( string $httpMethod, string $method, array $query = [], ?XrpcOptions $options = NULL, ): RawXrpcResponse; /** * Executes an XRPC request with a caller-provided body and returns its raw response. * * @param array $query */ public function requestRawWithBody( string $httpMethod, string $method, string|StreamInterface $body, string $contentType = 'application/octet-stream', array $query = [], ?XrpcOptions $options = NULL, ): RawXrpcResponse; /** * Returns the default service url. */ public function getDefaultServiceUrl(): ?string; /** * Creates a Lexicon-aware XRPC client for the repository. */ public function lexicons(LexiconRepositoryInterface $repository): LexiconXrpcClient; /** * Returns the configured handle resolver. */ public function handles(): HandleResolver; /** * Returns the configured DID resolver. */ public function dids(): DidResolver; }