Package Usage: go: github.com/getlantern/enhttp
Package enhttp provides an implementation of net.Conn that encapsulates
traffic in one or more HTTP requests. It is conceptually similar to the older
https://github.com/getlantern/enproxy but differs in that it supports HTTP
servers which don't support Transfer-Encoding: Chunked on uploads.
enhttp was created to facilitate domain-fronting within Lantern.
enhttp creates virtual connections that are identified by a unique GUID.
Every write to the connection is implemented as an HTTP POST. The first POST
establishes the virtual connection and subsequent HTTP POSTs are tied to that
connection by the X-En-Conn-Id header.
To support load-balancing, servers can optionally return an X-Server-URL
header that uniquely identifies the server that handled the initial POST. If
present, enhttp clients send all subsequent POSTs to that URL.
1 version
Latest release: almost 4 years ago
3 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/getlantern/enhttp