Improve http extension