Files
swift-nio/Sources/NIOTCPEchoServer
Franz Busch f38b7fd38a Remove SPI from NIOAsyncChannel, new bootstrap methods, protocol negotiation and HTTP upgrade. (#2548)
# Motivation
Over the past months, we have been working on new async bridges to make using NIO's `Channel` from Swift Concurrency possible. Since this work was far reaching we have opted to land all of it as SPI. Now the time has come and we feel confident enough to make the SPI official API. This comes after testing the new APIs in various scenarios such as HTTP 1&2, HTTP upgrades, protocol negotiation and in benchmarks.

# Modification
This PR removes the SPI from the `NIOAsyncChannel`, the bootstrap methods, protocol negotiation and HTTP upgrade.

# Result
Everyone can use the our new APIs🚀
2023-10-17 14:14:02 +01:00
..
2023-07-31 01:53:41 -07:00

NIOTCPEchoServer

This sample application provides a simple TCP server that sends clients back whatever they send it.

To run this server execute the following from the root of the repository:

swift run NIOTCPEchoServer

You can then use the NIOTCPClient to send requests to the server.