NetCoreServer
NetCoreServer copied to clipboard
Disallow HTTP or detect if packets are HTTP
This is possible using various methods like checking if the packet starts with GET, POST, etc but I would like a native elegant solution for this because my TcpServer does not support HTTP traffic.
HTTP is a protocol based on TCP connections. Nothing more than predefined packets according to the specification.
You must (unless you are looking for the byte signature) parse the bytes and discard them if they match the HTTP specification. Theres no way around this.