Documentation ¶
Index ¶
- func Fuzzymatch(tcsMocks []*models.Mock, reqBuff []byte, h *hooks.Hook) (bool, *models.Mock)
- func HttpDecoder(encoded string) ([]byte, error)
- func HttpEncoder(buffer []byte) string
- func IsAsciiPrintable(s string) bool
- func ProcessOutgoingHttp(request []byte, clientConn, destConn net.Conn, h *hooks.Hook, ...)
- type HttpParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fuzzymatch ¶
func HttpDecoder ¶
func HttpEncoder ¶
func IsAsciiPrintable ¶
Types ¶
type HttpParser ¶
type HttpParser struct {
// contains filtered or unexported fields
}
func NewHttpParser ¶
func NewHttpParser(logger *zap.Logger, h *hooks.Hook) *HttpParser
func (*HttpParser) OutgoingType ¶
func (h *HttpParser) OutgoingType(buffer []byte) bool
IsOutgoingHTTP function determines if the outgoing network call is HTTP by comparing the message format with that of an HTTP text message.
func (*HttpParser) ProcessOutgoing ¶
func (http *HttpParser) ProcessOutgoing(request []byte, clientConn, destConn net.Conn, ctx context.Context)
ProcessOutgoing implements proxy.DepInterface.
Click to show internal directories.
Click to hide internal directories.