Use newHTTPHandler factory