#ifndef REQUEST_H
#define REQUEST_H
#include "../public/nsapi.h"
#include "../util/object.h"
#include <cx/map.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct NSAPIRequest NSAPIRequest;
struct NSAPIRequest {
Request rq;
RequestStage phase;
VirtualServer *vs;
char *host;
uint16_t port;
NSAPIContext context;
void *jvm_context;
CxMap *resources;
WSBool finished;
};
#define NCX_OI(rq) rq->context.objset_index
#define NCX_DI(rq) rq->context.dtable_index
#define REQ_HASHSIZE 10
int request_set_path(cxstring root, cxstring path, pblock *vars);
#ifdef __cplusplus
}
#endif
#endif