-Environment Variables
-=====================
+# Environment Variables
The HTTPX library can be configured via environment variables.
Environment variables are used by default. To ignore environment variables, `trust_env` has to be set `False`. There are two ways to set `trust_env` to disable environment variables:
Here is a list of environment variables that HTTPX recognizes and what function they serve:
-`HTTPX_LOG_LEVEL`
------------------
+## `HTTPX_LOG_LEVEL`
Valid values: `debug`, `trace` (case-insensitive)
TRACE [2019-11-06 19:18:56] httpx._dispatch.connection - close_connection
```
-`SSLKEYLOGFILE`
------------
+## `SSLKEYLOGFILE`
Valid values: a filename
CLIENT_TRAFFIC_SECRET_0 XXXX
```
-`SSL_CERT_FILE`
------------
+## `SSL_CERT_FILE`
Valid values: a filename
SSL_CERT_FILE=/path/to/ca-certs/ca-bundle.crt python -c "import httpx; httpx.get('https://example.com')"
```
-`SSL_CERT_DIR`
------------
+## `SSL_CERT_DIR`
Valid values: a directory
SSL_CERT_DIR=/path/to/ca-certs/ python -c "import httpx; httpx.get('https://example.com')"
```
-`HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`
-----------------------------------------
+## `HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`
Valid values: A URL to a proxy