Skip to content

refactor(client): extract API paths and use typed HTTP headers#11

Merged
lostmygithubaccount merged 1 commit intomainfrom
cody/extract-api-constants
Apr 5, 2026
Merged

refactor(client): extract API paths and use typed HTTP headers#11
lostmygithubaccount merged 1 commit intomainfrom
cody/extract-api-constants

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

Summary

  • Extract hardcoded API path strings (/v1/users, /v1/users/{}/tokens, etc.) into named constants and path-building helper functions
  • Replace string-literal HTTP headers ("Authorization", "User-Agent", "Content-Type") with typed http::header constants
  • Extract "application/json" to a CONTENT_TYPE_JSON constant

🤖 Generated with Claude Code

Replace hardcoded API path strings with named constants and path-building
helper functions. Replace string-literal HTTP headers with http::header
typed constants (AUTHORIZATION, USER_AGENT, CONTENT_TYPE).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount enabled auto-merge (squash) April 5, 2026 23:57
@lostmygithubaccount lostmygithubaccount merged commit bbed7b1 into main Apr 5, 2026
1 check passed
@lostmygithubaccount lostmygithubaccount deleted the cody/extract-api-constants branch April 5, 2026 23:58
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.

1 participant