Current section

Files

Jump to
express lib express network http2 ssl_config.ex
Raw

lib/express/network/http2/ssl_config.ex

defmodule Express.Network.HTTP2.SSLConfig do
@moduledoc """
Specifies a behaviour and SSL configuration structure, where:
* `mode` - either :dev or :prod
* `cert` - SSL certificate
* `key` - RSA key
"""
defstruct ~w(mode cert key)a
@type t :: %__MODULE__{mode: atom() | String.t,
cert: binary(),
key: binary()}
@doc "SSL-configuration constructor (for provided arguments)."
@callback new(Keyword.t) :: __MODULE__.t
end