Logos DX
    Preparing search index...

    Function endpointSerializer

    • Endpoint serializer for generating rate limit and retry keys.

      Serializes by endpoint identity only (method + pathname). Used for policies that protect endpoints from overload.

      Parameters

      Returns string

      A unique string key for the endpoint

      endpointSerializer({
      method: 'GET',
      path: '/users/123',
      url: new URL('https://api.example.com/users/123?page=1'),
      headers: { Authorization: 'Bearer token' }
      });
      // Returns: 'GET|/users/123'