to_connection_info(ProxyInfo :: proxy_info())
-> ssl:connection_info()
ranch_proxy_header:to_connection_info - Convert proxy_info() to ssl:connection_info()
to_connection_info(ProxyInfo :: proxy_info())
-> ssl:connection_info()
Convert ranch_proxy_header:proxy_info() information to the ssl:connection_info() format returned by ssl:connection_information/1,2.
The PROXY protocol information.
Connection information is returned as a proplist.
Because the PROXY protocol header includes limited information, only the keys protocol, selected_cipher_suite and sni_hostname will be returned, at most. All keys are optional.
ConnInfo = ranch_proxy_header:to_connection_info(ProxyInfo).
Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.