# `Roadrunner.PhoenixAdapter`
[🔗](https://github.com/arizona-framework/roadrunner_plug/blob/0.1.0/lib/roadrunner/phoenix_adapter.ex#L1)

A Phoenix endpoint adapter that serves the endpoint with Roadrunner.

    # config/config.exs
    config :my_app, MyAppWeb.Endpoint,
      adapter: Roadrunner.PhoenixAdapter,
      url: [host: "localhost"]

The endpoint's `:http` and `:https` keyword lists are `Roadrunner.Plug`
options: `:ip` and `:port` as in a generated Phoenix app, the TLS keys
(`:keyfile`, `:certfile`, ...) under `:https`, and `:roadrunner` for any
other listener option.

# `server_info`

```elixir
@spec server_info(module(), :http | :https) ::
  {:ok, {:inet.ip_address(), :inet.port_number()}} | {:error, term()}
```

The address and port the endpoint's `scheme` listener is bound to.

---

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