Notes.h
Go to the documentation of this file.
89 bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched);
91 void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al);
MEMPROXY_CLASS(Entry)
ACLList * aclList
The access list used to determine if this value is valid for a request.
Definition: Notes.h:57
SBuf theFormattedValue
The expanded value produced by format(), empty for non-quoted values.
Definition: Notes.h:67
void parseKvPair()
Parses an annotate line with "key=value" or "key+=value" formats.
Definition: Notes.cc:223
Entry(const Entry &)=delete
Notes(const Notes &)=delete
void dump(StoreEntry *entry, const char *name)
Dump the notes list to the given StoreEntry object.
Definition: Notes.cc:255
Note & operator=(const Note &)=delete
Entry & operator=(const Entry &)=delete
Value(const char *aVal, const bool quoted, const char *descr, const Method method=mhReplace)
Definition: Notes.cc:35
Note::Pointer parse(ConfigParser &parser)
Parses a notes line and returns a pointer to the parsed Note object.
Definition: Notes.cc:202
void dump(StoreEntry *entry, const char *key)
Dump the single Note to the given StoreEntry object.
Definition: Notes.cc:108
NotePairs & operator=(NotePairs const &)=delete
Definition: AccessLogEntry.h:41
Definition: HttpRequest.h:49
Definition: Notes.h:109
void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al)
Definition: Notes.cc:248
bool find(SBuf &resultNote, const char *noteKey, const char *sep=",") const
Definition: Notes.cc:272
const Entries & expandListEntries(const CharacterSet *delimiters) const
Definition: Notes.cc:346
void addStrList(const SBuf &key, const SBuf &values, const CharacterSet &delimiters)
Definition: Notes.cc:359
void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al)
Definition: Notes.cc:94
Notes()=default
Definition: HttpReply.h:25
Value::Pointer addValue(const char *value, const bool quoted, const char *descr, const Value::Method m=Value::mhAppend)
Definition: Notes.cc:63
Notes & operator=(const Notes &)=delete
void append(const NotePairs *src)
Append the entries of the src NotePairs list to our list.
Definition: Notes.cc:374
Definition: Store.h:42
Definition: Notes.h:173
bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched)
Definition: Notes.cc:70
Definition: Format.h:42
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:18
Value(const Value &)=delete
Definition: Notes.h:36
Note(const Note &)=delete
NotePairs(NotePairs const &)=delete
void banReservedKey(const SBuf &key, const Keys &banned) const
Makes sure the given key is not on the given list of banned names.
Definition: Notes.cc:177
Definition: ConfigParser.h:45
void replaceOrAddOrAppend(const NotePairs *src, const Names &appendables)
Definition: Notes.cc:390
Value & operator=(const Value &)=delete