Documentation ¶
Index ¶
- func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) adapter.V2RayClientTransport
- type Client
- type HTTP2ConnWrapper
- type HTTPConn
- func (c *HTTPConn) Close() error
- func (c *HTTPConn) LocalAddr() net.Addr
- func (c *HTTPConn) Read(b []byte) (n int, err error)
- func (c *HTTPConn) RemoteAddr() net.Addr
- func (c *HTTPConn) SetDeadline(t time.Time) error
- func (c *HTTPConn) SetReadDeadline(t time.Time) error
- func (c *HTTPConn) SetWriteDeadline(t time.Time) error
- func (c *HTTPConn) Write(b []byte) (n int, err error)
- type Server
- type ServerHTTPConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTP2ConnWrapper ¶ added in v1.1.3
type HTTP2ConnWrapper struct { N.ExtendedConn // contains filtered or unexported fields }
func NewHTTP2Wrapper ¶ added in v1.1.3
func NewHTTP2Wrapper(conn net.Conn) *HTTP2ConnWrapper
func (*HTTP2ConnWrapper) CloseWrapper ¶ added in v1.1.3
func (w *HTTP2ConnWrapper) CloseWrapper()
func (*HTTP2ConnWrapper) Upstream ¶ added in v1.1.3
func (w *HTTP2ConnWrapper) Upstream() any
func (*HTTP2ConnWrapper) Write ¶ added in v1.1.3
func (w *HTTP2ConnWrapper) Write(p []byte) (n int, err error)
func (*HTTP2ConnWrapper) WriteBuffer ¶ added in v1.1.3
func (w *HTTP2ConnWrapper) WriteBuffer(buffer *buf.Buffer) error
type HTTPConn ¶
type HTTPConn struct {
// contains filtered or unexported fields
}
func (*HTTPConn) RemoteAddr ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ctx context.Context, options option.V2RayHTTPOptions, tlsConfig tls.ServerConfig, handler N.TCPConnectionHandler, errorHandler E.Handler) (*Server, error)
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)
func (*Server) ServePacket ¶
func (s *Server) ServePacket(listener net.PacketConn) error
type ServerHTTPConn ¶
type ServerHTTPConn struct { HTTPConn // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.