Why is the NIO ByteBuffer type compatible with the Foundation Data type on macOS but Linux requires importing NIOFoundationCompat?
On Linux, I get a swift compiler error when passing a ByteBuffer variable (body
in the below snippet) as a function’s Data parameter; however, this builds successfully on macOS.
How to send simple HTTP 201 Created response using Swift-NIO
I am trying to create a server that can accept a file save it on server and send a 201 Created response.