Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailContext = "webteleport"
View Source
var EmailName = "btwiuse"
View Source
var EmailSuffix = "gmail.com"
Functions ¶
func IsWebTeleportRequest ¶
IsWebTeleportRequest tells if the incoming request should be treated as UFO request
An UFO request must meet all criteria:
- r.Proto == "webtransport" - r.Method == "CONNECT" - origin (r.Host without port) matches HOST
if all true, it will be upgraded into a webtransport session otherwise the request will be handled by DefaultSessionManager
func NewServerTLS ¶ added in v0.1.10
func ParseDomainCandidates ¶
ParseDomainCandidates splits a path string like /a/b/cd/😏 into a list of subdomains: [a, b, cd, 😏]
when result is empty, a random subdomain will be assigned by the server
Types ¶
type WebTeleportServer ¶
WebTeleport is a HTTP/3 server that handles: - UFO client registration (CONNECT HOST) - requests over HTTP/3 (others)
func (*WebTeleportServer) ServeHTTP ¶
func (s *WebTeleportServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.