I am trying to create a server that can accept a file save it on server and send a 201 Created response.
Server has been made using Swift-NIO 2.65.0
I am successfully receiving the file as I can see the file save in the intended upload directory of the server but I do not understand how to simply send and HTTP 201 Created response with empty body.
Apples’s Github examples are not doing a great job in explaining the code.
I tried
context.write()
context.channel.write()