added protocol enum and built http client config