public interface ContentHandler
If however, the content needs to be processed manually, a pre-dispatchable dispatcher
WebDispatcher.preDispatch(WebContext)) can handle the request before the content is processed
completely. While being pre-dispatched
WebContext.setContentHandler(ContentHandler) can be used to
install a content handler which takes care of the request payload. Note that
WebDispatcher.dispatch(WebContext) will not be called for requests which were pre-dispatched.
void handle(ByteBuf content, boolean last) throws IOException
content- the data sent by the client. The buffer might be of size 0 but not null.
last- a flag signalling if this will be the last chunk of data
IOException- if case of an error (e.g. response already sent...)
Copyright © 2018. All rights reserved.