Documentation ¶
Index ¶
- func CloseIdleConnections(transport http.RoundTripper)
- func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error)
- type Client
- type ConnectionPool
- type 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
- type HTTPConn
- type Server
- type ServerHTTPConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseIdleConnections ¶
func CloseIdleConnections(transport http.RoundTripper)
Types ¶
type ConnectionPool ¶
type ConnectionPool interface {
CloseIdleConnections()
}
type HTTP2Conn ¶
type HTTP2Conn struct {
// contains filtered or unexported fields
}
func NewLateHTTPConn ¶
func (*HTTP2Conn) NeedAdditionalReadDeadline ¶
func (*HTTP2Conn) RemoteAddr ¶
type HTTP2ConnWrapper ¶
type HTTP2ConnWrapper struct { N.ExtendedConn // contains filtered or unexported fields }
func NewHTTP2Wrapper ¶
func NewHTTP2Wrapper(conn net.Conn) *HTTP2ConnWrapper
func (*HTTP2ConnWrapper) Close ¶
func (w *HTTP2ConnWrapper) Close() error
func (*HTTP2ConnWrapper) CloseWrapper ¶
func (w *HTTP2ConnWrapper) CloseWrapper()
func (*HTTP2ConnWrapper) Upstream ¶
func (w *HTTP2ConnWrapper) Upstream() any
func (*HTTP2ConnWrapper) WriteBuffer ¶
func (w *HTTP2ConnWrapper) WriteBuffer(buffer *buf.Buffer) error
type HTTPConn ¶
func (*HTTPConn) NeedHandshake ¶
func (*HTTPConn) ReaderReplaceable ¶
func (*HTTPConn) WriterReplaceable ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ctx context.Context, options option.V2RayHTTPOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (*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
Click to show internal directories.
Click to hide internal directories.