Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCustomHTTPHeader ¶
BuildCustomHTTPHeader constructs a custom HTTP header from an HTTP response It formats the headers into a byte slice following the HTTP protocol standard Parameters:
r - pointer to the httpx.Response object containing the response data
Returns:
[]byte - formatted HTTP header as a byte slice
Types ¶
type HttpBridge ¶
type HttpBridge struct {
// contains filtered or unexported fields
}
func (*HttpBridge) Close ¶
func (b *HttpBridge) Close()
func (*HttpBridge) WriterToRight ¶
func (b *HttpBridge) WriterToRight(p []byte) (int, error)
type HttpClientManager ¶
type HttpClientManager struct {
// contains filtered or unexported fields
}
func NewHttpClientManager ¶
func NewHttpClientManager() *HttpClientManager
func (*HttpClientManager) GetHttpBridge ¶
func (r *HttpClientManager) GetHttpBridge(ctx context.Context, left io.ReadWriteCloser, rightAddress string, reqId int64, isWs bool) (*HttpBridge, error)
type HttpTunnelClient ¶
type HttpTunnelClient struct {
*clis.BaseTunnelClient
// contains filtered or unexported fields
}
HttpTunnelClient is a tunnel client that handles HTTP connections.
func NewHttpTunnelClient ¶
func NewHttpTunnelClient(config *configs.ClientTunnelConfig) (*HttpTunnelClient, error)
func (*HttpTunnelClient) GetName ¶
func (h *HttpTunnelClient) GetName() string
GetName returns the name of the tunnel client.
type MultipleTunnelClient ¶
type MultipleTunnelClient struct {
// contains filtered or unexported fields
}
func (*MultipleTunnelClient) Close ¶
func (m *MultipleTunnelClient) Close()
type TcpTunnelClient ¶
type TcpTunnelClient struct {
*clis.BaseTunnelClient
}
func NewTcpTunnelClient ¶
func NewTcpTunnelClient(config *configs.ClientTunnelConfig, _ *MultipleTunnelClient) (*TcpTunnelClient, error)
func (*TcpTunnelClient) GetName ¶
func (t *TcpTunnelClient) GetName() string
type UdpTunnelClient ¶
type UdpTunnelClient struct {
*clis.BaseTunnelClient
// contains filtered or unexported fields
}
func NewUdpTunnelClient ¶
func NewUdpTunnelClient(cfg *configs.ClientTunnelConfig, _ *MultipleTunnelClient) (*UdpTunnelClient, error)
func (*UdpTunnelClient) GetName ¶
func (t *UdpTunnelClient) GetName() string
type WebsocketBridge ¶
type WebsocketBridge struct {
// contains filtered or unexported fields
}
func (*WebsocketBridge) Close ¶
func (c *WebsocketBridge) Close(isCloseLeft bool)
func (*WebsocketBridge) WriteToRight ¶
func (c *WebsocketBridge) WriteToRight(code ws.OpCode, data []byte)
type WebsocketClientManager ¶
type WebsocketClientManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.