Versions in this module Expand all Collapse all v0 v0.2.0 Jul 31, 2024 v0.1.0 Dec 3, 2023 Changes in this version + const DefaultMaxMessageBytes + const LocalAddressHeader + func Serve(l net.PacketConn, handler Handler) error + type ClientInterface interface + Do func(req *http.Request, timeout time.Duration, numSends int) ([]*http.Response, error) + type ClientInterfaceCtx interface + DoWithContext func(req *http.Request, numSends int) ([]*http.Response, error) + type HTTPUClient struct + func NewHTTPUClient() (*HTTPUClient, error) + func NewHTTPUClientAddr(addr string) (*HTTPUClient, error) + func (httpu *HTTPUClient) Close() error + func (httpu *HTTPUClient) Do(req *http.Request, timeout time.Duration, numSends int) ([]*http.Response, error) + func (httpu *HTTPUClient) DoWithContext(req *http.Request, numSends int) ([]*http.Response, error) + type Handler interface + ServeMessage func(r *http.Request) + type HandlerFunc func(r *http.Request) + func (f HandlerFunc) ServeMessage(r *http.Request) + type MultiClient struct + func NewMultiClient(delegates []ClientInterface) *MultiClient + func (mc *MultiClient) Do(req *http.Request, timeout time.Duration, numSends int) ([]*http.Response, error) + type MultiClientCtx struct + func NewMultiClientCtx(delegates []ClientInterfaceCtx) *MultiClientCtx + func (mc *MultiClientCtx) DoWithContext(req *http.Request, numSends int) ([]*http.Response, error) + type Server struct + Addr string + Handler Handler + Interface *net.Interface + MaxMessageBytes int + Multicast bool + func (srv *Server) ListenAndServe() error + func (srv *Server) Serve(l net.PacketConn) error