# `Opsmaru.Containers.Docker.Admission`
[🔗](https://github.com/upmaru/opsmaru-containers/blob/v0.1.0/lib/opsmaru/containers/docker/admission.ex#L1)

Shared backend-free route classification, host authorization and version
selection for HTTP and raw listener adapters.

# `rejection`

```elixir
@type rejection() :: {:error, pos_integer(), String.t()}
```

# `admit`

```elixir
@spec admit(module(), map(), integer()) :: {:ok, map()} | rejection()
```

Authorize an origin-form request using a host callback module. The request
includes its method, original encoded path and raw query. The listener can
include peer information for the host to authenticate.

---

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