#ifndef REQUEST_H
#define REQUEST_H
#include "../public/nsapi.h"
#include "../util/object.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;
};
#define NCX_OI(rq) rq->context.objset_index
#define NCX_DI(rq) rq->context.dtable_index
#define REQ_HASHSIZE 10
int request_set_path(
sstr_t root,
sstr_t path, pblock *vars);
#ifdef __cplusplus
}
#endif
#endif