Refactor: Extract ContentApiHandler from HttpServer (~900 lines)#448
Merged
Refactor: Extract ContentApiHandler from HttpServer (~900 lines)#448
Conversation
…rver.cpp Co-authored-by: makr-code <150588092+makr-code@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor ContentApiHandler to extract content operations
Refactor: Extract ContentApiHandler from HttpServer (~900 lines)
Jan 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Extracted content processing operations from monolithic
http_server.cppinto dedicatedContentApiHandlerclass following established pattern fromAdminApiHandler. Improves maintainability and separates concerns for content import, search, and configuration endpoints.Type of Change
Related Issues
Relates to handler refactoring initiative
Changes Made
Handler Implementation (15 methods, ~900 lines extracted)
handleImport(),handleGet(),handleGetBlob(),handleGetChunks()handleHybridSearch(),handleFusionSearch(),handleFulltextSearch()Dependencies Added
SecondaryIndexManagerfor fulltext searchVectorIndexManagerfor vector operationsContentManagerandContentProcessorfor content opsIntegration
content_api_member toHttpServercmake/CMakeLists.txt)Before:
After:
Testing
Test Environment
Test Results
test_http_content.cpp)Test Commands
Checklist
Code Quality
Documentation
Branch Strategy Compliance
developfor features,mainfor releases/hotfixes)feature/,bugfix/,hotfix/,release/)mainordevelopPerformance Impact
Performance Notes:
Zero-cost abstraction - delegation adds single vtable lookup, negligible compared to I/O operations.
Breaking Changes
None. Pure refactoring with identical external behavior.
Security Considerations
Additional Notes
Code Review Findings:
Pattern Consistency:
Follows exact pattern established by
AdminApiHandlerfor maintainability and consistency.Screenshots/Logs
N/A - Backend refactoring with no UI changes
For Maintainers:
Review Checklist
Merge Strategy
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.