libreoffice-online/wsd/ProxyRequestHandler.hpp
Henry Castro 7ecbaa6c5a wsd: proxy: add cache response
Change-Id: I52844a744bd0028bef49b95da5a02fd33d9536fa
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-06-27 16:04:32 +01:00

24 lines
755 B
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <string>
#include "Socket.hpp"
class ProxyRequestHandler
{
public:
static void handleRequest(const std::string& relPath,
const std::shared_ptr<StreamSocket>& socket);
private:
static constexpr auto ProxyServer = "https://www.collaboraoffice.com";
static std::map<std::string, std::shared_ptr<http::Response>> CacheFileHash;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */