Max Romanov
|
f3107f3896
|
Complex target parser copied from NGINX.
nxt_app_request_header_t fields renamed:
- 'path' renamed to 'target'.
- 'path_no_query' renamed to 'path' and contains parsed value.
|
2017-07-05 13:31:45 +03:00 |
|
Max Romanov
|
e7a0634a71
|
Application-side message processing.
Usage on the router side:
nxt_app_wmsg_t wmsg;
nxt_app_parse_ctx_t parse_ctx;
nxt_app_http_req_init(task, &parse_ctx);
/* parse incoming request data */
if (nxt_app_http_req_parse(task, &parse_ctx, buf) == NXT_DONE) {
/* choose app */
nxt_app = nxt_select_app(... &parse_ctx.r ...);
/* find port */
wmsg.port = nxt_get_app_port(... nxt_app ...);
wmsg.buf = &wmsg.write;
/* fill write message buffer in shared mem */
nxt_app->prepare_msg(task, &parse_ctx.r, &wmsg);
/* send message to app for processing */
nxt_port_socket_write(task, wmsg.port, NXT_PORT_MSG_DATA,
-1, 0, 0, wmsg.write);
}
|
2017-06-23 19:20:08 +03:00 |
|
Igor Sysoev
|
f888a5310c
|
Using new memory pool implementation.
|
2017-06-20 19:49:17 +03:00 |
|
Igor Sysoev
|
7574c64992
|
nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
|
2017-06-14 15:18:52 +03:00 |
|
Igor Sysoev
|
d0c72e0726
|
C99 style declaration of connection states.
|
2017-06-06 18:57:58 +03:00 |
|
Igor Sysoev
|
5bc011afad
|
Skeleton of router configuration and request processing.
|
2017-05-31 15:26:45 +03:00 |
|
Igor Sysoev
|
612c083579
|
Fixed unit tests building broken by the previous commit.
|
2017-03-14 15:09:17 +03:00 |
|
Igor Sysoev
|
6f2c9acd18
|
Processes refactoring.
The cycle has been renamed to the runtime.
|
2017-03-09 18:03:27 +03:00 |
|
Igor Sysoev
|
029942f4eb
|
I/O operations refactoring.
|
2017-02-22 15:09:59 +03:00 |
|
Igor Sysoev
|
059a864289
|
Event engines refactoring.
|
2017-02-07 20:04:56 +03:00 |
|
Igor Sysoev
|
6e67bee0f4
|
nxt_str_t changes.
|
2017-02-01 19:20:07 +03:00 |
|
Igor Sysoev
|
ba0391577b
|
Work queues refactoring.
|
2017-01-27 11:35:11 +03:00 |
|
Igor Sysoev
|
de532922d9
|
Introducing tasks.
|
2017-01-23 19:56:03 +03:00 |
|
Igor Sysoev
|
16cbf3c076
|
Initial version.
|
2017-01-17 20:00:00 +03:00 |
|