# is_http_url

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/config/is_http_url)

Return whether `value` is a non-empty `http`/`https` URL with a host.

Guards the LangSmith endpoint so a stored API key is never paired with a
non-HTTP, malformed, or schemeless value that could route trace ingestion
(and the key) somewhere unintended.

## Signature

```python
is_http_url(
    value: str,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `str` | Yes | Candidate endpoint URL. |

## Returns

`bool`

`True` when `value` parses as an `http`/`https` URL with a network
location that contains no whitespace.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/config.py#L462)