Documentation ¶
Index ¶
- func CloseIdleConnections(transport http.RoundTripper)
- func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error)
- func ResetTransport(rawTransport http.RoundTripper) http.RoundTripper
- 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 ¶ added in v1.2.2
func CloseIdleConnections(transport http.RoundTripper)
func ResetTransport ¶ added in v1.9.4
func ResetTransport(rawTransport http.RoundTripper) http.RoundTripper
Types ¶
type ConnectionPool ¶ added in v1.2.2
type ConnectionPool interface {
CloseIdleConnections()
}
type HTTP2Conn ¶ added in v1.2.3
type HTTP2Conn struct {
// contains filtered or unexported fields
}
func NewLateHTTPConn ¶ added in v1.2.5
func (*HTTP2Conn) NeedAdditionalReadDeadline ¶ added in v1.2.5
func (*HTTP2Conn) RemoteAddr ¶ added in v1.2.3
func (*HTTP2Conn) SetReadDeadline ¶ added in v1.2.3
func (*HTTP2Conn) SetWriteDeadline ¶ added in v1.2.3
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) Close ¶ added in v1.3.0
func (w *HTTP2ConnWrapper) Close() error
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 ¶
func NewHTTP1Conn ¶ added in v1.2.3
func (*HTTPConn) NeedHandshake ¶ added in v1.2.3
func (*HTTPConn) ReaderReplaceable ¶ added in v1.2.3
func (*HTTPConn) WriterReplaceable ¶ added in v1.2.3
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ctx context.Context, logger logger.ContextLogger, 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.