-
-
Notifications
You must be signed in to change notification settings - Fork 736
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
Question: Can I write an async request body matcher? #1060
Comments
I don’t know myself, but sounds like something that should be supported |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions. |
This would be a really nice thing to have. I am running into an issue right now, where I want to parse some multipart form data in the request body parser and I can't since the form data parser is streaming. |
@giodamelio if you like, open a new issue for it? But you’d need to champion it to get it shipped, we can only facilitate your contribution and make it as pleasant an experience as possible. We can’t do it ourselves I’m afraid |
Unfortunately I don't really have time to do this currently, so I'll leave
this for now.
This has bit me multiple times in the past though, so I very well might
come back to it.
…On Tue, Oct 2, 2018, 11:35 AM Gregor Martynus ***@***.***> wrote:
@giodamelio <https://github.com/giodamelio> if you like, open a new issue
for it? But you’d need to champion it to get it shipped, we can only
facilitate your contribution and make it as pleasant an experience as
possible. We can’t do it ourselves I’m afraid
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1060 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAa9LopGy07ovOMl4Bp9IZyERmX-q-ddks5ug7HbgaJpZM4R8Sep>
.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you! |
@giodamelio please open a new issue if you find time to work on it, no rush :) |
The
post
function allows me to create a predicate, if a specific request should be matched or not. In my case, I need to differentiate on xml data in the post, and my xml parser is async.Is there a way I can write an async predicate for the post body?
As a workaround, I have created a regex matcher, that just matches the small part of the xml containing the interesting ids.
The text was updated successfully, but these errors were encountered: