Documentation ¶
Overview ¶
Package http provides functionality for handling HTTP outgoing calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPassThrough ¶
func NewHTTP ¶
func NewHTTP(logger *zap.Logger) integrations.Integrations
Types ¶
type ContentType ¶
type ContentType string
const ( Unknown ContentType = "Unknown" JSON ContentType = "JSON" XML ContentType = "XML" CSV ContentType = "CSV" HTML ContentType = "HTML" TextPlain ContentType = "TextPlain" )
Constants for different content types.
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) MatchType ¶
MatchType function determines if the outgoing network call is HTTP by comparing the message format with that of an HTTP text message.
func (*HTTP) MockOutgoing ¶
func (h *HTTP) MockOutgoing(ctx context.Context, src net.Conn, dstCfg *integrations.ConditionalDstCfg, mockDb integrations.MockMemDb, opts models.OutgoingOptions) error
Click to show internal directories.
Click to hide internal directories.