/*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#ifndef _SQUID_FORMAT_TOKEN_H
#define _SQUID_FORMAT_TOKEN_H
-//#include "format/TokenTableEntry.h"
#include "format/ByteCode.h"
+#include "proxyp/Elements.h"
/*
* Squid configuration allows users to define custom formats in
const char *label;
struct {
char *string;
+ // TODO: Add ID caching for protocols other than PROXY protocol.
+ /// the cached ID of the parsed header or zero
+ ProxyProtocol::Two::FieldType headerId;
struct {
char *header;
bool space;
bool zero;
int divisor; // class invariant: MUST NOT be zero.
- Token *next; /* todo: move from linked list to array */
+ Token *next; // TODO: move from linked list to array
private:
const char *scanForToken(TokenTableEntry const table[], const char *cur);