refine httplib HTTPMessage