Skip to content

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

714 B
Raw Blame
#include <iostream>
#include <string>
#include <vector>

class HttpClient {
public:
    HttpClient(const std::string& baseUrl) : baseUrl_(baseUrl) {}

    std::string get(const std::string& path) {
        return buildRequest("GET", path);
    }

    std::string post(const std::string& path, const std::string& body) {
        return buildRequest("POST", path);
    }

private:
    std::string baseUrl_;

    std::string buildRequest(const std::string& method, const std::string& path) {
        return method + " " + baseUrl_ + path;
    }
};

int main() {
    HttpClient client("https://api.example.com");
    std::string response = client.get("/users");
    std::cout << response << std::endl;
    return 0;
}