ContentLengthInterpreter.h
Go to the documentation of this file.
const char * findDigits(const char *prefix, const char *valueEnd) const
Definition: ContentLengthInterpreter.cc:36
bool goodSuffix(const char *suffix, const char *const end) const
checks whether all characters after the Content-Length are allowed
Definition: ContentLengthInterpreter.cc:53
const char * prohibitedAndIgnored() const
Definition: ContentLengthInterpreter.h:47
bool checkList(const String &list)
handles Content-Length: a, b, c
Definition: ContentLengthInterpreter.cc:129
ContentLengthInterpreter()
Definition: ContentLengthInterpreter.cc:22
bool checkField(const String &field)
Definition: ContentLengthInterpreter.cc:153
bool sawBad
whether a malformed Content-Length value was present
Definition: ContentLengthInterpreter.h:58
const char * prohibitedAndIgnored_
whether and why Content-Length is prohibited
Definition: ContentLengthInterpreter.h:77
void applyStatusCodeRules(const StatusCode code)
prohibits Content-Length in 1xx and 204 responses
Definition: ContentLengthInterpreter.h:31
bool checkValue(const char *start, const int size)
Definition: ContentLengthInterpreter.cc:71
void applyTrailerRules()
prohibits Content-Length in GET/HEAD requests
Definition: ContentLengthInterpreter.h:42
bool needsSanitizing
Definition: ContentLengthInterpreter.h:63
const char * headerWideProblem
worst header-wide problem found (or nil)
Definition: ContentLengthInterpreter.h:54
Definition: SquidString.h:26
Definition: forward.h:18
bool ProhibitsContentLength(const StatusCode sc)
whether this response status code prohibits sending Content-Length
Definition: StatusCode.h:96