Open zuiderkwast opened 2 years ago
This one is waiting as well.
If you don't accept exposing the internal gen_statem states, then how about a variant with fewer states (e.g. connecting | connected | closing
) instead of the full not_connected | domain_lookup | connecting | initial_tls_handshake | tls_handshake | connected | closing
?
Or if you don't accept it at all, it's better to know that and close it.
Probably best to document it as atom()
so they can be changed without it being a breaking change if necessary.
One final change, sorry I didn't think about this earlier. I think we should name the field state_name
instead of state
to avoid any unnecessary confusion with the process state.
It's useful to be able to check the HTTP connection status (connected, closing, not connected, etc.). The current gen_statem state name provides exactly this info. This commit adds it to
gun:info/1
under the keystate
.