xref: /unit/src/java/nxt_jni_Request.h (revision 1157:7ae152bda303)
1 
2 /*
3  * Copyright (C) NGINX, Inc.
4  */
5 
6 #ifndef _NXT_JAVA_REQUEST_H_INCLUDED_
7 #define _NXT_JAVA_REQUEST_H_INCLUDED_
8 
9 
10 #include <jni.h>
11 #include <nxt_unit_typedefs.h>
12 
13 
14 int nxt_java_initRequest(JNIEnv *env, jobject cl);
15 
16 jobject nxt_java_newRequest(JNIEnv *env, jobject ctx, nxt_unit_request_info_t *req);
17 
18 void nxt_java_Request_websocket(JNIEnv *env, jobject jreq, jobject jbuf,
19     uint8_t opcode, uint8_t fin);
20 
21 void nxt_java_Request_close(JNIEnv *env, jobject jreq);
22 
23 #endif  /* _NXT_JAVA_REQUEST_H_INCLUDED_ */
24