@Test public void testGetResponseServerError() throws Exception { ByteBuf bb = Unpooled.wrappedBuffer( "HTTP/1.1 500 Internal Server Error\r\nServer: xio\r\n\r\n\r\n".getBytes()); DefaultFullHttpResponse response = BBtoHttpResponse.getResponse(bb); assertEquals(HttpResponseStatus.INTERNAL_SERVER_ERROR, response.getStatus()); assertEquals("xio", response.headers().get("Server")); }
public static DefaultFullHttpResponse getResponse(ByteBuf byteBuf) { return BBtoHttpResponse.getResponse(null, byteBuf); }
BBtoHttpResponse { public static DefaultFullHttpResponse getResponse(ByteBuf byteBuf) { return BBtoHttpResponse.getResponse(null, byteBuf); } }
BBtoHttpResponse { public static DefaultFullHttpResponse getResponse(ByteBuf byteBuf) { return BBtoHttpResponse.getResponse(null, byteBuf); } private  BBtoHttpResponse(); }
BBtoHttpResponse { public static DefaultFullHttpResponse getResponse(ByteBuf byteBuf) { return BBtoHttpResponse.getResponse(null, byteBuf); } private  BBtoHttpResponse(); static DefaultFullHttpResponse getResponse(ByteBuf byteBuf); static DefaultFullHttpResponse getResponse(
      @Nullable ChannelHandlerContext ctx, ByteBuf byteBuf); }
BBtoHttpResponse { public static DefaultFullHttpResponse getResponse(ByteBuf byteBuf) { return BBtoHttpResponse.getResponse(null, byteBuf); } private  BBtoHttpResponse(); static DefaultFullHttpResponse getResponse(ByteBuf byteBuf); static DefaultFullHttpResponse getResponse(
      @Nullable ChannelHandlerContext ctx, ByteBuf byteBuf);  }