/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "err_type.h"
#include "esi/Element.h"
#include "esi/Parser.h"
+#include "http/forward.h"
#include "http/StatusCode.h"
class ESIVarState;
public:
typedef RefCount<ESIContext> Pointer;
ESIContext() :
- thisNode(NULL),
- http(NULL),
- errorpage(ERR_NONE),
- errorstatus(Http::scNone),
- errormessage(NULL),
- rep(NULL),
- outbound_offset(0),
- readpos(0),
- pos(0),
- varState(NULL),
- cachedASTInUse(false),
- reading_(true),
- processing(false) {
+ thisNode(NULL),
+ http(NULL),
+ errorpage(ERR_NONE),
+ errorstatus(Http::scNone),
+ errormessage(NULL),
+ rep(NULL),
+ outbound_offset(0),
+ readpos(0),
+ pos(0),
+ varState(NULL),
+ cachedASTInUse(false),
+ reading_(true),
+ processing(false) {
memset(&flags, 0, sizeof(flags));
}
int oktosend:1;
int finished:1;
- /* an error has occured, send full body replies
+ /* an error has occurred, send full body replies
* regardless. Note that we don't fail midstream
* because we buffer until we can not fail
*/
err_type errorpage; /* if we error what page to use */
Http::StatusCode errorstatus; /* if we error, what code to return */
char *errormessage; /* error to pass to error page */
- HttpReply *rep; /* buffered until we pass data downstream */
+ HttpReplyPointer rep; /* buffered until we pass data downstream */
ESISegment::Pointer buffered; /* unprocessed data - for whatever reason */
ESISegment::Pointer incoming;
/* processed data we are waiting to send, or for
};
#endif /* SQUID_ESICONTEXT_H */
+