mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
parse HTTP header fields
This commit is contained in:
parent
b1b72d2d33
commit
e1d445ab50
4 changed files with 26 additions and 9 deletions
5
util.h
5
util.h
|
@ -39,6 +39,11 @@ namespace util
|
|||
|
||||
namespace http
|
||||
{
|
||||
const char ETAG[] = "ETag";
|
||||
const char IF_MODIFIED_SINCE[] = "If-Modified-Since";
|
||||
const char LAST_MODIFIED[] = "Last-Modified";
|
||||
const char TRANSFER_ENCODING[] = "Transfer-Encoding";
|
||||
|
||||
std::string httpRequest(const std::string& address);
|
||||
int httpRequestViaI2pProxy(const std::string& address, std::string &content); // return http code
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue