* @return {@link NextAction}
* @throws IOException
*/
@Override
public NextAction handleRead(final FilterChainContext ctx) throws IOException {
final Buffer input = ctx.getMessage();
final Connection connection = ctx.getConnection();
ServerHttpRequestImpl httpRequest = httpRequestInProcessAttr.get(connection);
if (httpRequest == null) {
final boolean isSecureLocal = isSecure(connection);
httpRequest = ServerHttpRequestImpl.create();
httpRequest.initialize(connection, this, input.position(), maxHeadersSize, maxRequestHeaders);
httpRequest.setSecure(isSecureLocal);
final HttpResponsePacket response = httpRequest.getResponse();
response.setSecure(isSecureLocal);
response.getHeaders().setMaxNumHeaders(maxResponseHeaders);
httpRequest.setResponse(response);