From dccb4cf3548724fbec993c5bb83edf928d0b23bf Mon Sep 17 00:00:00 2001 From: Alexander Borisov Date: Wed, 6 Mar 2019 15:26:45 +0300 Subject: Removed unnecessary abstraction layer. --- src/nxt_http.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nxt_http.h') diff --git a/src/nxt_http.h b/src/nxt_http.h index 23c406d3..3cf3e38e 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -114,6 +114,7 @@ struct nxt_http_request_s { const nxt_http_request_state_t *state; nxt_str_t host; + nxt_str_t server_name; nxt_str_t target; nxt_str_t version; nxt_str_t *method; @@ -131,6 +132,9 @@ struct nxt_http_request_s { nxt_sockaddr_t *remote; nxt_sockaddr_t *local; + nxt_timer_t timer; + void *timer_data; + nxt_buf_t *last; nxt_http_response_t resp; -- cgit From 452ce0789e8e8f1ac98cc0ed7efce03656a3d616 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Thu, 21 Mar 2019 13:55:57 +0300 Subject: Adjusting request schema value according to connection tls state. This closes #223 issue on GitHub. --- src/nxt_http.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nxt_http.h') diff --git a/src/nxt_http.h b/src/nxt_http.h index 3cf3e38e..00c13599 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -131,6 +131,7 @@ struct nxt_http_request_s { nxt_sockaddr_t *remote; nxt_sockaddr_t *local; + void *tls; nxt_timer_t timer; void *timer_data; @@ -169,6 +170,7 @@ typedef void (*nxt_http_proto_body_read_t)(nxt_task_t *task, nxt_http_request_t *r); typedef void (*nxt_http_proto_local_addr_t)(nxt_task_t *task, nxt_http_request_t *r); +typedef void (*nxt_http_proto_tls_t)(nxt_task_t *task, nxt_http_request_t *r); typedef void (*nxt_http_proto_header_send_t)(nxt_task_t *task, nxt_http_request_t *r); typedef void (*nxt_http_proto_send_t)(nxt_task_t *task, nxt_http_request_t *r, @@ -190,7 +192,6 @@ nxt_http_request_t *nxt_http_request_create(nxt_task_t *task); void nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r, nxt_http_status_t status); void nxt_http_request_read_body(nxt_task_t *task, nxt_http_request_t *r); -void nxt_http_request_local_addr(nxt_task_t *task, nxt_http_request_t *r); void nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r); void nxt_http_request_send(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *out); @@ -225,6 +226,7 @@ extern nxt_lvlhsh_t nxt_response_fields_hash; extern const nxt_http_proto_body_read_t nxt_http_proto_body_read[]; extern const nxt_http_proto_local_addr_t nxt_http_proto_local_addr[]; +extern const nxt_http_proto_tls_t nxt_http_proto_tls[]; extern const nxt_http_proto_header_send_t nxt_http_proto_header_send[]; extern const nxt_http_proto_send_t nxt_http_proto_send[]; extern const nxt_http_proto_body_bytes_sent_t nxt_http_proto_body_bytes_sent[]; -- cgit From 5fb3daa5af30bd6e57d5ca82df269a226f1e5813 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 30 May 2019 15:33:51 +0300 Subject: Added routing based on arguments. --- src/nxt_http.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_http.h') diff --git a/src/nxt_http.h b/src/nxt_http.h index 00c13599..e788399f 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -121,6 +121,7 @@ struct nxt_http_request_s { nxt_str_t *path; nxt_str_t *args; + nxt_array_t *arguments; /* of nxt_http_name_value_t */ nxt_list_t *fields; nxt_http_field_t *content_type; nxt_http_field_t *content_length; -- cgit From 6a775f58af430bd2e1f41556e9bb28b089a5e068 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 30 May 2019 15:33:51 +0300 Subject: Added routing based on cookies. --- src/nxt_http.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_http.h') diff --git a/src/nxt_http.h b/src/nxt_http.h index e788399f..835cf66d 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -122,6 +122,7 @@ struct nxt_http_request_s { nxt_str_t *args; nxt_array_t *arguments; /* of nxt_http_name_value_t */ + nxt_array_t *cookies; /* of nxt_http_name_value_t */ nxt_list_t *fields; nxt_http_field_t *content_type; nxt_http_field_t *content_length; -- cgit