Closed elridion closed 3 years ago
Thanks for the PR but transports are not public API so we only expose :http
and :https
.
Does this mean custom modules are not intended to to be used (e.g. work) when used as scheme?
They may work but they are not public API so you should not use them and they may break at any time in an update.
Do you need custom transports, if so what's the use case?
I have a use case — I made a Tor implementation in Elixir (will be open-sourced soon) and relied on this feature
@ericmj I have decided to publish it a little ahead of time, so it's a bit unpolished, but here it is!
@ericmj my use case is running a Mint.Transport
implementation based on erlangs :socket
.
In this particular case I'm relying on a file based UNIX socket that communicates via HTTP/1
Functions like connect/4 that use scheme_to_transport/1 subsequentially allow for modules to be used as a scheme. The scheme type now reflects this.