# `Condukt.Sandbox.NetworkPolicy.Hosts`
[🔗](https://github.com/tuist/condukt/blob/1.5.1/lib/condukt/sandbox/network_policy/hosts.ex#L1)

Host glob matching shared by the `AllowHosts` and `DenyHosts` rules.

Syntax:

  * `*` matches a single DNS label (no dots).
  * `**` matches one or more dot-separated labels.
  * Literal characters match themselves; comparison is case-insensitive.

Examples:

    "api.github.com"     # literal
    "*.openai.com"       # one label before the suffix
    "**.googleapis.com"  # one or more labels before the suffix

# `matches?`

Single-pattern match. See module docs for the glob syntax.

# `matches_any?`

Returns whether `host` matches any pattern in the given list.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
