2009-10-08 19:59:10 +02:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2009-10-08 19:59:10 +02:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2010-02-28 22:33:06 +01:00
|
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
2009-10-08 19:59:10 +02:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef headerfilecmslucoreacceptencodingparser
|
|
|
|
#define headerfilecmslucoreacceptencodingparser
|
|
|
|
|
|
|
|
#include "acceptbaseparser.h"
|
|
|
|
#include "log.h"
|
|
|
|
|
|
|
|
|
|
|
|
class AcceptEncodingParser : public AcceptBaseParser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
bool AcceptDeflate()
|
|
|
|
{
|
|
|
|
return accept_deflate;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
void Init()
|
|
|
|
{
|
|
|
|
accept_deflate = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Param(const std::string & param, double q)
|
|
|
|
{
|
|
|
|
if( param=="deflate" && q!=0 )
|
|
|
|
{
|
|
|
|
accept_deflate = true;
|
|
|
|
log << log3 << "AEP: accept deflate" << logend;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool accept_deflate;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|