Some APIs require additional HTTP headers for authentication, versioning, localization, or custom integrations. Currently, there is no straightforward way to define default headers that are automatically included with every request.
- Allow configuring default HTTP headers globally.
- Support overriding or extending headers on individual requests.
- Preserve existing default headers unless explicitly replaced.
- Validate header names and values to prevent invalid configurations.
This would make it easier to integrate with a wider range of APIs, reduce repetitive configuration, and improve flexibility for applications with custom authentication or request requirements.
Some APIs require additional HTTP headers for authentication, versioning, localization, or custom integrations. Currently, there is no straightforward way to define default headers that are automatically included with every request.
This would make it easier to integrate with a wider range of APIs, reduce repetitive configuration, and improve flexibility for applications with custom authentication or request requirements.