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
|
@ -17,10 +17,6 @@ namespace i2p
|
|||
namespace client
|
||||
{
|
||||
const char DEFAULT_SUBSCRIPTION_ADDRESS[] = "http://udhdrtrcetjm5sxzskjyr5ztpeszydbh4dpl3pl4utgqqw2v4jna.b32.i2p/hosts.txt";
|
||||
// TODO: move http fields to common http code
|
||||
const char HTTP_FIELD_ETAG[] = "ETag";
|
||||
const char HTTP_FIELD_IF_MODIFIED_SINCE[] = "If-Modified-Since";
|
||||
const char HTTP_FIELD_LAST_MODIFIED[] = "Last-Modified";
|
||||
|
||||
class AddressBookStorage // interface for storage
|
||||
{
|
||||
|
@ -48,7 +44,7 @@ namespace client
|
|||
void InsertAddress (const std::string& address, const std::string& base64); // for jump service
|
||||
void InsertAddress (const i2p::data::IdentityEx& address);
|
||||
|
||||
void LoadHostsFromStream (std::istream& f);
|
||||
void LoadHostsFromStream (std::istream& f, bool isChunked = false);
|
||||
void SetIsDownloading (bool isDownloading) { m_IsDownloading = isDownloading; };
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue