add text/html writemime for MethodList and Method (fix #4952)