Published February 9, 2026
| Version v1.8.0
Software
Open
r-lib/nanonext: nanonext 1.8.0
Description
New Features
- Adds
http_server()for creating HTTP and WebSocket servers with TLS/SSL support. - Adds
handler()for dynamic HTTP request handling with custom callbacks. - Adds
handler_ws()for WebSocket connections withon_message,on_open, andon_closecallbacks. - Adds
handler_stream()for HTTP streaming using chunked transfer encoding, supporting Server-Sent Events (SSE), NDJSON, and custom streaming formats. - Adds
format_sse()helper for formatting Server-Sent Events messages. - Adds static content handlers:
handler_file()andhandler_directory()for serving files,handler_inline()for in-memory content, andhandler_redirect()for HTTP redirects. ncurl()and variants now acceptresponse = TRUEto return all response headers.- Listeners now automatically resolve port
0to the actual port assigned by the OS. The listener'surlattribute is updated when the listener starts. - Adds
race_aio()to wait for and return the index of the first resolved Aio in a list of Aios.
Updates
- Closing an already closed stream now returns 'errorValue' 7 | Object closed rather than error.
random()now only accepts 'n' between 1 and 1024. Supplying 0 will error (#238).- Fixes a potential crash when
random()orwrite_cert()is called in a fresh session before any other TLS-related functions have been called, and nanonext has been compiled against a system Mbed TLS with PSA crypto enabled. (#242). - Fixes a potential crash when a serialization hook errors (#225).
- Performance improvements for serialization, streaming, and async sends.
- Bundled 'libmbedtls' updated to latest 3.6.5 LTS branch release (#234).
- Building from source no longer requires
xz.
Files
r-lib/nanonext-v1.8.0.zip
Files
(1.4 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:53aef6b4db0746e0428c7bee6b55e6b4
|
1.4 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/r-lib/nanonext/tree/v1.8.0 (URL)
Software
- Repository URL
- https://github.com/r-lib/nanonext