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