move class definition before its usage
fix compilation error caused by HttpParser