summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/response.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-11-11Fixing libunit 'off by 2' issue in library.Max Romanov1-1/+1
Name and value in each header are 0-terminated, so additional 2 bytes should be allocated for them. There were several attempts to add these 2 bytes to headers in language modules, but some modules weren't updated. Also, adding these 2 bytes is specific to the implementation which may be changed later, so extending this mechanics to modules may cause errors.
2019-10-01Go: fixing header buffer size calculation.Max Romanov1-1/+1
Header names and values are stored 0-terminated for ease of use in different languages, so magic number 2 should be added to each name-value pair size.
2018-08-06Unit application library.Max Romanov1-12/+24
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-07-12Go: http.Flusher implemented by unit.response.Max Romanov1-0/+8
This closes #133 issue on GitHub.
2017-12-28HTTP keep-alive connections support.Igor Sysoev1-1/+1
2017-12-06Go: removing request registry.Max Romanov1-4/+2
Passing unsafe.Pointers (void *) from Go to C is complicated by an attempt to make such pointers less unsafe. A straightforward optimization is to replace 'unsafe.Pointer' with 'uintptr' (thanks to Xin Huang for the idea: https://stackoverflow.com/a/44826533 ). As a result, request registry with mutex is gone.
2017-08-31nginext has been renamed to unit.Igor Sysoev1-0/+69