#include "squid.h"
#include "HttpHdrSc.h"
#include "HttpHeader.h"
+#include "HttpHeaderFieldInfo.h"
#include "HttpHeaderFieldStat.h"
#include "HttpHeaderStat.h"
#include "HttpHeaderTools.h"
{"Other,", (http_hdr_type)SC_OTHER} /* ',' will protect from matches */
};
+class HttpHeaderFieldInfo;
HttpHeaderFieldInfo *ScFieldsInfo = NULL;
http_hdr_sc_type &operator++ (http_hdr_sc_type &aHeader)
#include "HttpHdrContRange.h"
#include "HttpHdrSc.h"
#include "HttpHeader.h"
+#include "HttpHeaderFieldInfo.h"
#include "HttpHeaderStat.h"
#include "HttpHeaderTools.h"
#include "MemBuf.h"
{"Other:", HDR_OTHER, ftStr} /* ':' will not allow matches */
};
+class HttpHeaderFieldInfo;
static HttpHeaderFieldInfo *Headers = NULL;
http_hdr_type &operator++ (http_hdr_type &aHeader)
--- /dev/null
+#ifndef SQUID_HTTPHEADERFIELDINFO_H_
+#define SQUID_HTTPHEADERFIELDINFO_H_
+/*
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+#include "SquidString.h"
+#include "HttpHeaderFieldStat.h"
+
+/* compiled version of HttpHeaderFieldAttrs plus stats */
+class HttpHeaderFieldInfo
+{
+public:
+ HttpHeaderFieldInfo() : id (HDR_ACCEPT), type (ftInvalid) {}
+
+ http_hdr_type id;
+ String name;
+ field_type type;
+ HttpHeaderFieldStat stat;
+};
+
+
+
+#endif /* SQUID_HTTPHEADERFIELDINFO_H_ */
#include "fde.h"
#include "HttpHdrContRange.h"
#include "HttpHeader.h"
+#include "HttpHeaderFieldInfo.h"
#include "HttpHeaderTools.h"
#include "HttpRequest.h"
#include "MemBuf.h"
extern int httpHeaderParseOffset(const char *start, int64_t * off);
-class HttpHeaderFieldInfo;
class String;
class HttpHeader;
class HttpRequest;
+class HttpHeaderFieldInfo;
extern HttpHeaderFieldInfo *httpHeaderBuildFieldsInfo(const HttpHeaderFieldAttrs * attrs, int count);
extern void httpHeaderDestroyFieldsInfo(HttpHeaderFieldInfo * info, int count);
HttpHeader.cc \
HttpHeaderMask.h \
HttpHeaderRange.h \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpBody.h \
HttpHeader.h \
HttpHeader.cc \
HttpHeaderMask.h \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpControlMsg.h \
HttpBody.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHdrContRange.cc \
HttpBody.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeaderFieldStat.h \
HttpHdrSc.cc \
HttpHdrScTarget.cc \
HttpHdrRange.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeader.h \
HttpBody.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeaderFieldStat.h \
HttpBody.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeaderFieldStat.h \
HttpHdrScTarget.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpMsg.cc \
HttpBody.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeaderFieldStat.h \
HttpHdrRange.cc \
HttpHdrSc.cc \
HttpHdrScTarget.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeader.h \
stmem.cc \
mime.h \
tests/stub_mime.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeader.h \
HttpHdrScTarget.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpMsg.cc \
stmem.cc \
mime.h \
tests/stub_mime.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeader.h \
stmem.cc \
mime.h \
tests/stub_mime.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpHeader.h \
HttpHdrScTarget.cc \
HttpHeader.h \
HttpHeader.cc \
+ HttpHeaderFieldInfo.h \
HttpHeaderTools.h \
HttpHeaderTools.cc \
HttpMsg.cc \
{"response", (http_hdr_type)DIGEST_RESPONSE},
};
+class HttpHeaderFieldInfo;
static HttpHeaderFieldInfo *DigestFieldsInfo = NULL;
/*
off_t offset;
};
-/* compiled version of HttpHeaderFieldAttrs plus stats */
-#include "SquidString.h"
-
-class HttpHeaderFieldInfo
-{
-
-public:
- HttpHeaderFieldInfo() : id (HDR_ACCEPT), type (ftInvalid) {}
-
- http_hdr_type id;
- String name;
- field_type type;
- HttpHeaderFieldStat stat;
-};
class http_state_flags {
public: