Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServeSCION ¶
ListenAndServeSCION listens for HTTPS connections on the SCION address addr and calls ServeSCION with handler to handle requests
func ServeSCION ¶
ServeSCION creates a listener on conn and listens for HTTPS connections. A new goroutine handles each request using handler
Types ¶
type Server ¶
type Server struct { Addr string // contains filtered or unexported fields }
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 ListenAndServeSCION (instead of ServeSCION) may race if it is called before a UDP socket is established
func (*Server) ListenAndServeSCION ¶
ListenAndServeSCION listens for QUIC connections on srv.Addr and calls ServeSCION to handle incoming requests
func (*Server) ServeSCION ¶
func (srv *Server) ServeSCION(conn net.PacketConn, certFile, keyFile string) error
ServeSCION listens on conn and accepts incoming connections a goroutine is spawned for every request and handled by srv.srv.handler
type Transport ¶
type Transport struct { LAddr *snet.Addr QuicConfig *quic.Config DisableCompression bool // contains filtered or unexported fields }
Transport wraps a h2quic.RoundTripper making it compatible with SCION
func (*Transport) RoundTrip ¶
RoundTrip does a single round trip; retreiving a response for a given request
func (*Transport) RoundTripOpt ¶
func (t *Transport) RoundTripOpt(req *http.Request, opt h2quic.RoundTripOpt) (*http.Response, error)
RoundTripOpt is the same as RoundTrip but takes additional options