9#ifndef SQUID_SRC_HTTP_STATUSLINE_H
10#define SQUID_SRC_HTTP_STATUSLINE_H
48 const char *
reason()
const;
60 bool parse(
const String &protoPrefix,
const char *start,
const char *end);
bool parse(const String &protoPrefix, const char *start, const char *end)
void init()
reset this status-line back to empty state
void clean()
reset this status-line back to Internal Server Error state
size_t packedLength() const
expected size of packInto() output
void packInto(Packable *) const
pack fields into a Packable object
AnyP::ProtocolVersion version
breakdown of protocol version label: (HTTP/ICY) and (0.9/1.0/1.1)
void resetReason()
reset the reason phrase to its default status code-derived value
Http::StatusCode status_
status code. ie 100 ... 200 ... 404 ... 599
void set(const AnyP::ProtocolVersion &newVersion, Http::StatusCode newStatus, const char *newReason=nullptr)
const char * reason_
points to a constant string (default or supplied), never free()d
const char * reason() const
retrieve the reason string for this status line
Http::StatusCode status() const
retrieve the status code for this status line