Documentation
¶
Index ¶
- func ListenAndServe(addr string, handler http.Handler, tlsConfig *tls.Config) error
- func MangleSCIONAddrURL(url string) string
- func NewSingleSCIONHostReverseProxy(remote string, cliTLSCfg *tls.Config) (*httputil.ReverseProxy, error)
- func Serve(conn net.PacketConn, handler http.Handler) error
- type RoundTripper
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
ListenAndServe listens for HTTPS connections on the SCION address addr and calls Serve with handler to handle requests
func MangleSCIONAddrURL ¶
MangleSCIONAddrURL mangles a SCION address in the host part of a URL-ish string so that it can be safely used as a URL, i.e. it can be parsed by net/url.Parse
func NewSingleSCIONHostReverseProxy ¶ added in v0.2.0
func NewSingleSCIONHostReverseProxy(remote string, cliTLSCfg *tls.Config) (*httputil.ReverseProxy, error)
Proxies the incoming HTTP/1.1 request to the configured remote creating a new SCION HTTP/3 request
Types ¶
type RoundTripper ¶
type RoundTripper interface {
http.RoundTripper
io.Closer
}
RoundTripper extends the http.RoundTripper interface with a Close
func NewRoundTripper ¶
func NewRoundTripper(tlsClientCfg *tls.Config, quicCfg *quic.Config) RoundTripper
NewRoundTripper creates a new RoundTripper that can be used as the Transport of an http.Client.
type Server ¶
Server wraps a http3.Server making it work with SCION
func (*Server) Close ¶
Close the server immediately, aborting requests and sending CONNECTION_CLOSE frames to connected clients Close in combination with ListenAndServe (instead of Serve) may race if it is called before a UDP socket is established
func (*Server) ListenAndServe ¶
ListenAndServe listens for QUIC connections on srv.Addr and calls Serve to handle incoming requests