I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
This PR enables fetchr to be used without any callback.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
This PR enables fetchr to be used without any callback.
Before
After
It's still possible to use the old signature since we detect the new one based on the number or arguments defined in the handler.
This change also make it simple to create handlers that do not require any argument:
Before
After