Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2023 Changes in this version + func CloseIdleConnections(transport http.RoundTripper) + func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error) + type Client struct + func (c *Client) Close() error + func (c *Client) DialContext(ctx context.Context) (net.Conn, error) + type ConnectionPool interface + CloseIdleConnections func() + type HTTP2Conn struct + func NewHTTPConn(reader io.Reader, writer io.Writer) HTTP2Conn + func NewLateHTTPConn(writer io.Writer) *HTTP2Conn + func (c *HTTP2Conn) Close() error + func (c *HTTP2Conn) LocalAddr() net.Addr + func (c *HTTP2Conn) NeedAdditionalReadDeadline() bool + func (c *HTTP2Conn) Read(b []byte) (n int, err error) + func (c *HTTP2Conn) RemoteAddr() net.Addr + func (c *HTTP2Conn) SetDeadline(t time.Time) error + func (c *HTTP2Conn) SetReadDeadline(t time.Time) error + func (c *HTTP2Conn) SetWriteDeadline(t time.Time) error + func (c *HTTP2Conn) Setup(reader io.Reader, err error) + func (c *HTTP2Conn) Write(b []byte) (n int, err error) + type HTTP2ConnWrapper struct + func NewHTTP2Wrapper(conn net.Conn) *HTTP2ConnWrapper + func (w *HTTP2ConnWrapper) Close() error + func (w *HTTP2ConnWrapper) CloseWrapper() + func (w *HTTP2ConnWrapper) Upstream() any + func (w *HTTP2ConnWrapper) Write(p []byte) (n int, err error) + func (w *HTTP2ConnWrapper) WriteBuffer(buffer *buf.Buffer) error + type HTTPConn struct + func NewHTTP1Conn(conn net.Conn, request *http.Request) *HTTPConn + func (c *HTTPConn) NeedHandshake() bool + func (c *HTTPConn) Read(b []byte) (n int, err error) + func (c *HTTPConn) ReaderReplaceable() bool + func (c *HTTPConn) Upstream() any + func (c *HTTPConn) Write(b []byte) (int, error) + func (c *HTTPConn) WriterReplaceable() bool + type Server struct + func NewServer(ctx context.Context, options option.V2RayHTTPOptions, ...) (*Server, error) + func (s *Server) Close() error + func (s *Server) Network() []string + func (s *Server) Serve(listener net.Listener) error + func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request) + func (s *Server) ServePacket(listener net.PacketConn) error + type ServerHTTPConn struct + Flusher http.Flusher + func (c *ServerHTTPConn) Write(b []byte) (n int, err error)