-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Adding RequestBehaviour
s to Malibu
#88
Comments
RequestBehaviour
s to MalibuRequestBehaviour
s to Malibu
Another advantage to this approach is, you can compose Request Behaviours, making Malibu incredibly explicit!
|
I think it would be a great addition to the library. What are your thoughts @onmyway133 @zenangst ? |
@codeOfRobin @vadymmarkov Good idea. I see Malibu has customisation points where we can configure request already, but this is a nice refactoring around it. |
I'll start working on some changes. Thank you for the feedback guys! |
Hey folks! So sorry I’ve not been able to give it much thought over the past week + (Been dealing with some work stuff). Will get to this tomorrow 👍 |
Hey @vadymmarkov I've been considering retaining the |
I think it should work @codeOfRobin |
Hey!
I've been reading about
RequestBehaviour
recently and I think it'd be a great addition to Malibu, especially for things like Logging,NetworkActivityIndicator
s, authentication, caching etc.Here's what the protocol looks like
And Auth can be implemented as follows:
There's other examples in the blog post, but this would be an excellent starting point (Logging could be in both
before
andafter
function calls, for example)PS: Discussed this with @vadymmarkov on Twitter recently: https://twitter.com/vadymmarkov/status/956075029736894465
The text was updated successfully, but these errors were encountered: