httputil: add http request helpers