Versions in this module Expand all Collapse all v0 v0.1.0 Jun 30, 2025 Changes in this version + type AssignedAddress struct + IPPrefix netip.Prefix + RequestID uint64 + type CloseError struct + Remote bool + func (e *CloseError) Error() string + func (e *CloseError) Is(target error) bool + type Conn struct + func Dial(ctx context.Context, conn *http3.ClientConn, template *uritemplate.Template) (*Conn, *http.Response, error) + func (c *Conn) AdvertiseRoute(ctx context.Context, routes []IPRoute) error + func (c *Conn) AssignAddresses(ctx context.Context, prefixes []netip.Prefix) error + func (c *Conn) Close() error + func (c *Conn) LocalPrefixes(ctx context.Context) ([]netip.Prefix, error) + func (c *Conn) ReadPacket(b []byte) (n int, err error) + func (c *Conn) Routes(ctx context.Context) ([]IPRoute, error) + func (c *Conn) WritePacket(b []byte) (icmp []byte, err error) + type IPRoute struct + EndIP netip.Addr + IPProtocol uint8 + StartIP netip.Addr + func (r IPRoute) Prefixes() []netip.Prefix + type Proxy struct + func (s *Proxy) Proxy(w http.ResponseWriter, _ *Request) (*Conn, error) + type Request struct + func ParseRequest(r *http.Request, template *uritemplate.Template) (*Request, error) + type RequestParseError struct + Err error + HTTPStatus int + func (e *RequestParseError) Error() string + func (e *RequestParseError) Unwrap() error + type RequestedAddress struct + IPPrefix netip.Prefix + RequestID uint64