class RateLimitedAgent

extends XRPC

An XRPC agent with rate-limited requests.

Constructor

constructor(options, limiter)

Parameters

options: XRPCOptions
limiter: RateLimitThreshold

Properties

labelers: Set<string>

Methods

request(options)

Makes a request to the XRPC service

Parameters

options: XRPCRequestOptions

Returns

Promise<XRPCResponse<any>>

withProxy(type, service)

Create a new agent with the atproto_proxy header set.

Parameters

type: string

The proxy type.

service: `did:${string}`

The proxy service.