summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-03-12 17:54:05 +0300
committerMax Romanov <max.romanov@nginx.com>2020-03-12 17:54:05 +0300
commit2454dfe876c7d761aa46f972addd3e7c97bb8d68 (patch)
tree119e3b55c7c1ed2b5d7346d2668e6caccb5c6998 /src/nxt_unit.h
parent23636ce02cf8a9abc6759b88a117f84b8457a7cd (diff)
downloadunit-2454dfe876c7d761aa46f972addd3e7c97bb8d68.tar.gz
unit-2454dfe876c7d761aa46f972addd3e7c97bb8d68.tar.bz2
Introducing readline function in libunit.
Ruby and Java modules now use this function instead of own implementations.
Diffstat (limited to 'src/nxt_unit.h')
-rw-r--r--src/nxt_unit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_unit.h b/src/nxt_unit.h
index c8aaa124..8e9e3015 100644
--- a/src/nxt_unit.h
+++ b/src/nxt_unit.h
@@ -335,6 +335,9 @@ int nxt_unit_response_write_cb(nxt_unit_request_info_t *req,
ssize_t nxt_unit_request_read(nxt_unit_request_info_t *req, void *dst,
size_t size);
+ssize_t nxt_unit_request_readline_size(nxt_unit_request_info_t *req,
+ size_t max_size);
+
void nxt_unit_request_done(nxt_unit_request_info_t *req, int rc);