View Source DiodeClient.Transport (Diode Client v1.2.7)
DiodeClient Transport interface for use with Cowboy2 Adapter
and :hackeny
. Potentially more depending on interface compatibility
Example using hackney to make http requests via Diode:
{:ok, ref} = :hackney.connect(DiodeClient.Transport, address, port)
request = {:get, path, [], ""}
{:ok, status, headers, ^ref} = :hackney.send_request(ref, request)
{:ok, content} = :hackney.body(ref)
Summary
Functions
See :ssl.close/1
.
Functions
@spec accept(DiodeClient.Acceptor.Listener.t(), any()) :: {:error, any()} | {:ok, pid()}
See :ssl.close/1
.
See :ssl.getopts/2
.
@spec listen(keyword()) :: DiodeClient.Acceptor.Listener.t()
See :ssl.peername/1
.
See :ssl.recv/2
.
See :ssl.recv/3
.
See :ssl.send/2
.
See :ssl.setopts/2
.
See :ssl.shutdown/2
.