Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyMutator ¶
type BodyMutator struct {
// contains filtered or unexported fields
}
func NewBodyMutator ¶
func NewBodyMutator(bodyMutations *filterapi.HTTPBodyMutation, originalBody []byte) *BodyMutator
func (*BodyMutator) HasMutations ¶ added in v1.0.0
func (b *BodyMutator) HasMutations() bool
HasMutations reports whether this BodyMutator was constructed with a non-nil HTTPBodyMutation config. When false, Mutate is a no-op that returns its input unchanged, so callers can short-circuit the upstream filter's body-replacement path entirely.
Click to show internal directories.
Click to hide internal directories.