Configure requests with custom headers. Can be used directly in object literals with spread syntax.
Object containing header key-value pairs
Partial request options with the specified headers
const reqOptions = { ...withHeaders({ 'X-Request-ID': 'unique-id-123', 'X-Custom-Header': 'custom-value' }), timeoutInSeconds: 30};await client.actions.list({}, reqOptions); Copy
const reqOptions = { ...withHeaders({ 'X-Request-ID': 'unique-id-123', 'X-Custom-Header': 'custom-value' }), timeoutInSeconds: 30};await client.actions.list({}, reqOptions);
Configure requests with custom headers. Can be used directly in object literals with spread syntax.