[fix] Inconsistency between declaration and definition http encoders (close #3)