Releases: britzl/defnet
DefNet 3.3
NEW: Added dependency to defold-luasocket project and removed manually copied files from LuaSocket.
DefNet 3.2.3
FIX: The tcp_server did sometimes fail to assert even though the socket was created. Changed the way the assert is done.
DefNet 3.2.2
FIX: Only keep reading from client socket while connected
DefNet 3.2.1
CHANGE: The tcp_send_queue will send all data in the queue each update() instead of only the first data in the queue
CHANGE: The tcp_client will read lines until timeout instead of only a single line
DefNet 3.2
tcp_send_queue.lua now returns any error message while send
tcp_send_queue.lua handles partial sends better
tcp_client.lua now has a on_disconnect callback
DefNet 3.1
Removed coxpcall as the current use of pcall and coroutines doesn't seem to be a problem.
DefNet 3.0
NEW: Added support for chunked transfer encoding in the HTTP Server.
CHANGE: The routing functions in the HTTP server will now receive any matches as an indexed array instead of unpacked to individual arguments.
CHANGE: The routing functions in the HTTP server can will now receive a stream callback function as it's second argument. This function can be used instead of returning a string.
CHANGE: The routing functions in the HTTP server can now return a function instead of a string. If a function is returned it will be called repeatedly over time to get more data to send as a response. This is typically used for chunked transfers.
DefNet 2.1.1
Reduced default TCP chunk size
DefNet 2.1
Large TCP payloads will now be sent in multiple TCP send calls. The maximum TCP send chunk size is configurable per TCP send queue.
DefNet 2.0
NEW: http_server now has support for Access-Control-Allow-Origin response header. The default value is Access-Control-Allow-Origin: *
. The value is controlled via the public variable access_control on the http server instance. Set it to nil to disable the response header.
BREAKING CHANGE: http_server.html(), http_server.json() and http_server.file() response creator functions have been moved to the http server instance to allow creation of a response with all headers set properly