//
// Created by skingging on 5/16/25.
//

#ifndef METRICSEXPORTER_H
#define METRICSEXPORTER_H
#include <memory>
#include <unordered_map>

#include "../include/Crawler.h"

using namespace std;

struct MetricsExporter {
    static void serve(shared_ptr<unordered_map<uint32_t, Crawler>> crawler);
    static void process_request(int client_fd);
};

inline string HEAD = "HTTP/1.1 200 OK\r\nContent-Type: text/plain; version=0.0.4\r\n\r\n";

#endif
