Skip to content

Conversation

@arslanbekov
Copy link
Member

related #55

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new Settings resource in the client while adding a default Content-Type header setting during HTTP requests.

  • Added Settings field and initialization in the Client struct
  • Added a conditional check in DoRequest to set the Content-Type header if missing
Comments suppressed due to low confidence (1)

cloudconnexa/cloudconnexa.go:47

  • Consider adding a comment documenting the purpose of the new Settings field to maintain consistency and improve code readability for new contributors.
Settings            *SettingsService

…d setCommonHeaders helper to centralize Authorization, User-Agent, and Content-Type header logic - Improve maintainability by reducing code duplication across HTTP requests - Preserve existing behavior while enhancing code organization
@arslanbekov arslanbekov merged commit 8ec9016 into main Jun 6, 2025
8 checks passed
@arslanbekov arslanbekov deleted the feature/add-settings-resource branch June 6, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants