1 2 /* 3 * Copyright (C) NGINX, Inc. 4 */ 5 6 #ifndef _NXT_ROUTER_REQUEST_H_INCLUDED_ 7 #define _NXT_ROUTER_REQUEST_H_INCLUDED_ 8 9 10 typedef struct { 11 nxt_buf_t *buf; 12 nxt_fd_t body_fd; 13 uint32_t tracking_cookie; 14 } nxt_msg_info_t; 15 16 17 typedef enum { 18 NXT_APR_NEW_PORT, 19 NXT_APR_REQUEST_FAILED, 20 NXT_APR_GOT_RESPONSE, 21 NXT_APR_UPGRADE, 22 NXT_APR_CLOSE, 23 } nxt_apr_action_t; 24 25 26 typedef struct { 27 uint32_t stream; 28 nxt_app_t *app; 29 30 nxt_port_t *app_port; 31 nxt_apr_action_t apr_action; 32 33 nxt_http_request_t *request; 34 nxt_msg_info_t msg_info; 35 36 nxt_bool_t rpc_cancel; 37 } nxt_request_rpc_data_t; 38 39 40 #endif /* _NXT_ROUTER_REQUEST_H_INCLUDED_ */ 41