nit
nit copied to clipboard
libevent and nitcorn should expect to read binary data in HTTP requests
Currently, libevent converts every byte received within a packet to a UTF8 String. And nitcorn picks up these strings (with format errors or not) to reassemble them in a larger String.
Because of this, nitcorn servers cannot receive binary data.
libevent must be updated to read bytes and forward instances of Bytes in the callbacks to the users of the library. nitcorn HTTP parser services should expect bytes and offer services to access binary data.
As discussed, ping @R4PaSs