Notes.h
Go to the documentation of this file.
91 bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched);
93 void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al);
121 explicit Notes(const char *aDescr, const Keys *extraReservedKeys = nullptr, bool allowFormatted = true);
257 void print(std::ostream &os, const char *nameValueSeparator, const char *entryTerminator) const;
MEMPROXY_CLASS(Entry)
ACLList * aclList
The access list used to determine if this value is valid for a request.
Definition: Notes.h:59
SBuf theFormattedValue
The expanded value produced by format(), empty for non-quoted values.
Definition: Notes.h:69
void parseKvPair()
Parses an annotate line with "key=value" or "key+=value" formats.
Definition: Notes.cc:231
Note & operator=(const Note &)=delete
Entry & operator=(const Entry &)=delete
void print(std::ostream &os, const char *nameValueSeparator, const char *entryTerminator) const
Definition: Notes.cc:295
Value(const char *aVal, const bool quoted, const char *descr, const Method method=mhReplace)
Definition: Notes.cc:37
Note::Pointer parse(ConfigParser &parser)
Parses a notes line and returns a pointer to the parsed Note object.
Definition: Notes.cc:210
NotePairs & operator=(NotePairs const &)=delete
Definition: AccessLogEntry.h:40
Definition: HttpRequest.h:48
void printAsAnnotationAclParameters(std::ostream &) const
Definition: Notes.cc:126
Definition: Notes.h:112
void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al)
Definition: Notes.cc:256
void printAsAnnotationAclParameters(std::ostream &) const
Definition: Notes.cc:270
bool find(SBuf &resultNote, const char *noteKey, const char *sep=",") const
Definition: Notes.cc:281
void printAsNoteDirective(StoreEntry *, const char *directiveName) const
Prints key and value(s) using a "note" directive format (including directive name).
Definition: Notes.cc:106
const Entries & expandListEntries(const CharacterSet *delimiters) const
Definition: Notes.cc:351
void addStrList(const SBuf &key, const SBuf &values, const CharacterSet &delimiters)
Definition: Notes.cc:364
void updateNotePairs(NotePairsPointer pairs, const CharacterSet *delimiters, const AccessLogEntryPointer &al)
Definition: Notes.cc:92
Notes()=default
Definition: HttpReply.h:24
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:379
Definition: Store.h:37
void printAsNoteDirectives(StoreEntry *, const char *directiveName) const
Prints notes using "note" squid.conf directive format, one directive per stored note.
Definition: Notes.cc:263
Definition: Notes.h:179
bool match(HttpRequest *request, HttpReply *reply, const AccessLogEntryPointer &al, SBuf &matched)
Definition: Notes.cc:70
Definition: Format.h:41
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:17
Definition: Notes.h:37
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:185
Definition: ConfigParser.h:45
void replaceOrAddOrAppend(const NotePairs *src, const Names &appendables)
Definition: Notes.cc:395
Value & operator=(const Value &)=delete
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products