protocol method on environement for http or https