13#define STUB_API "http/libhttp.la"
22 headerWideProblem(
nullptr),
25 needsSanitizing(
false),
27 prohibitedAndIgnored_(
nullptr)
40Message::~Message() {
STUB}
42void Message::setContentLength(int64_t)
STUB
46bool Message::parseCharBuf(const
char *, ssize_t)
STUB_RETVAL(false)
47int Message::httpMsgParseStep(const
char *,
int,
int)
STUB_RETVAL(-1)
50void Message::hdrCacheInit()
STUB
54#include "http/MethodType.h"
71#include "http/RequestMethod.h"
81#include "http/StatusCode.h"
91void StatusLine::clean()
STUB
93const
char *StatusLine::reason() const
STUB_RETVAL(
nullptr)
94size_t StatusLine::packedLength() const
STUB_RETVAL(0)
99#include "http/Stream.h"
105bool Stream::startOfOutput() const
STUB
106void Stream::writeComplete(
size_t)
STUB
107void Stream::pullData()
STUB
108bool Stream::multipartRangeRequest() const
STUB_RETVAL(false)
109int64_t Stream::getNextRangeOffset() const
STUB_RETVAL(-1)
110bool Stream::canPackMoreRanges() const
STUB_RETVAL(false)
115void Stream::noteSentBodyBytes(
size_t)
STUB
121void Stream::finished()
STUB
122void Stream::initiateClose(const
char *)
STUB
#define STUB
macro to stub a void function.
void HttpRequestMethodXXX(char const *)
const SBuf & image() const
bool goodSuffix(const char *suffix, const char *const end) const
checks whether all characters after the Content-Length are allowed
bool checkList(const String &list)
handles Content-Length: a, b, c
ContentLengthInterpreter()
bool checkField(const String &field)
bool checkValue(const char *start, const int size)
Message(http_hdr_owner_type)
void init()
reset this status-line back to empty state
void registerWithConn()
register this stream with the Server
Stream(const Comm::ConnectionPointer &aConn, ClientHttpRequest *aReq)
construct with HTTP/1.x details
common part of ParseBws() and ParseStrctBws()
std::ostream & operator<<(std::ostream &, const TunnelerAnswer &)
const SBuf MethodType_sb[]
AnyP::ProtocolVersion ProtocolVersion()
const HeaderLookupTable_t HeaderLookupTable
const char * StatusCodeString(const Http::StatusCode status)
Generic protocol-agnostic parsing tools.
static struct node * parse(FILE *fp)