Endpoint serializer for generating rate limit and retry keys.
Serializes by endpoint identity only (method + pathname). Used for policies that protect endpoints from overload.
Request key context
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' Copy
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'
Endpoint serializer for generating rate limit and retry keys.
Serializes by endpoint identity only (method + pathname). Used for policies that protect endpoints from overload.