ClientHttpRequest *http;
struct {
- int passthrough:1;
- int oktosend:1;
- int finished:1;
+ unsigned int passthrough:1;
+ unsigned int oktosend:1;
+ unsigned int finished:1;
/* an error has occurred, send full body replies
* regardless. Note that we don't fail midstream
* because we buffer until we can not fail
*/
- int error:1;
+ unsigned int error:1;
- int finishedtemplate:1; /* we've read the entire template */
- int clientwantsdata:1; /* we need to satisfy a read request */
- int kicked:1; /* note on reentering the kick routine */
- int detached:1; /* our downstream has detached */
+ unsigned int finishedtemplate:1; /* we've read the entire template */
+ unsigned int clientwantsdata:1; /* we need to satisfy a read request */
+ unsigned int kicked:1; /* note on reentering the kick routine */
+ unsigned int detached:1; /* our downstream has detached */
} flags;
err_type errorpage; /* if we error what page to use */
ParserState();
void freeResources();
void popAll();
- int parsing:1; /* libexpat is not reentrant on the same context */
+ unsigned int parsing:1; /* libexpat is not reentrant on the same context */
private:
bool inited_;
ESIElement::Pointer except;
struct {
- int attemptok:1; /* the attempt branch process correctly */
- int exceptok:1; /* likewise */
- int attemptfailed:1; /* The attempt branch failed */
- int exceptfailed:1; /* the except branch failed */
+ unsigned int attemptok:1; /* the attempt branch process correctly */
+ unsigned int exceptok:1; /* likewise */
+ unsigned int attemptfailed:1; /* The attempt branch failed */
+ unsigned int exceptfailed:1; /* the except branch failed */
} flags;
void finish() override;
void subRequestDone (ESIStreamContext::Pointer, bool);
struct {
- int onerrorcontinue:1; /* on error return zero data */
- int failed:1; /* Failed to process completely */
- int finished:1; /* Finished getting subrequest data */
+ unsigned int onerrorcontinue:1; /* on error return zero data */
+ unsigned int failed:1; /* Failed to process completely */
+ unsigned int finished:1; /* Finished getting subrequest data */
} flags;
ESIStreamContext::Pointer src;
ESIStreamContext::Pointer alt;
ESISegment::Pointer buffer;
struct {
- int donevars:1;
+ unsigned int donevars:1;
} flags;
ESIVarState *varState;
size_t processedcount;
struct {
- int dovars:1; /* for esiVar */
+ unsigned int dovars:1; /* for esiVar */
} flags;
void finish() override;
HttpHeader hdr;
struct {
- int language:1;
- int cookie:1;
- int host:1;
- int referer:1;
- int useragent:1;
+ unsigned int language:1;
+ unsigned int cookie:1;
+ unsigned int host:1;
+ unsigned int referer:1;
+ unsigned int useragent:1;
} flags;
public: