Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Add the current class scope to custom mutator functions #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cewald
Copy link
Contributor

@cewald cewald commented Jan 18, 2021

This way you could use the default RequestBody class scope to e.g. use extractFirstValueMutator in a custom-filter's value mutator without duplicating it or use other magic based on the current RequestBody class instance.

For example: If I'd like to use the default extractFirstValueMutator in a custom filter I currently need to duplicate this functionality. With the scope added to the message using call we can just write smth like:

mutator () { return this.extractFirstValueMutator(value) }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant