public final class HTTPServerProtocolErrorHandler : ChannelDuplexHandler, RemovableChannelHandler

A simple channel handler that catches errors emitted by parsing HTTP requests and sends 400 Bad Request responses.

This channel handler provides the basic behaviour that the majority of simple HTTP servers want. This handler does not suppress the parser errors: it allows them to continue to pass through the pipeline so that other handlers (e.g. logging ones) can deal with the error.