Tunnel

A port forwarded from within a running Modal container. Created by modal.forward().

Important: This is an experimental API which may change in the future.

Attributes

hoststr
portint
unencrypted_hoststr
unencrypted_portint

url

url(self)

Get the public HTTPS URL of the forwarded port.

tls_socket

tls_socket(self)

Get the public TLS socket as a (host, port) tuple.

tcp_socket

tcp_socket(self)

Get the public TCP socket as a (host, port) tuple.