mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-02-20 08:05:28 -05:00
Compare commits
2 Commits
dirScan
...
update_htt
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f19327023 | ||
|
|
b2b907f813 |
6439
test/httplib.h
6439
test/httplib.h
File diff suppressed because it is too large
Load Diff
@@ -57,12 +57,12 @@ public: // functions
|
|||||||
ZimFileServer(int serverPort, const FilePathCollection& zimpaths, std::string indexTemplateString = "");
|
ZimFileServer(int serverPort, const FilePathCollection& zimpaths, std::string indexTemplateString = "");
|
||||||
~ZimFileServer();
|
~ZimFileServer();
|
||||||
|
|
||||||
Response GET(const char* path, const Headers& headers = Headers())
|
httplib::Result GET(const char* path, const Headers& headers = Headers())
|
||||||
{
|
{
|
||||||
return client->Get(path, headers);
|
return client->Get(path, headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
Response HEAD(const char* path, const Headers& headers = Headers())
|
httplib::Result HEAD(const char* path, const Headers& headers = Headers())
|
||||||
{
|
{
|
||||||
return client->Head(path, headers);
|
return client->Head(path, headers);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user