WebFramework v3.0.12
Web framework for C++.
Loading...
Searching...
No Matches
IStaticFile.h
1#pragma once
2
3#include "IFile.h"
4#include "WebNetwork/HTTPResponse.h"
5
6namespace framework
7{
8 namespace interfaces
9 {
10 class WEB_FRAMEWORK_API IStaticFile : virtual public IFile
11 {
12 public:
16 virtual void sendStaticFile(const std::string& filePath, HTTPResponse& response, bool isBinary, const std::string& fileName) = 0;
17
18 virtual ~IStaticFile() = default;
19 };
20 }
21}
HTTPBuilder wrapper.
virtual void sendStaticFile(const std::string &filePath, HTTPResponse &response, bool isBinary, const std::string &fileName)=0