Documentation
¶
Index ¶
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
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 h2quic.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