stable-diffusion.cpp/examples/server/server_access.h
Mike Pasarella c33eebc5a6
feat(server): add --api-key, --api-key-file and --cors-origins (#2367)
Co-authored-by: leejet <leejet714@gmail.com>
2026-11-25 23:12:55 +08:00

15 lines
298 B
C++

#pragma once
#include "httplib.h"
struct SDSvrParams;
class SDHttpServer final : public httplib::Server {
public:
explicit SDHttpServer(const SDSvrParams& params);
private:
bool process_and_close_socket(socket_t socket) override;
static thread_local bool close_after_response_;
};