-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Support for multipart formdata in RequestMessage #1076
Comments
@chrischu |
Interesting, but can I use these matchers to assert the requests that were sent? e.g. |
The request message contains a property |
Ok I was not aware that a MimeMessage is the same as multipart form data 😮 |
@chrischu Does this answer your question? |
Kinda, it gives me a possible workaround, but I still think that requiring users to
is not really a great user experience. |
I understand your points.
|
Especially the 2nd point would hint at the fact, that probably using MimeKit to parse multipart form data is not the right choice? ASP.NET Core should have stuff to parse form data (as it can parse form data by itself). Maybe it would be better to use that instead of forcing a dependency on MimeKit? |
Is your feature request related to a problem? Please describe.
As far as I can tell the
RequestMessage
only has good support for URL-encoded form data.Describe the solution you'd like
It would be cool if there was support for multipart form data as well (e.g. like
HttpRequest.Form
from .NET Core).Describe alternatives you've considered
An alternative would be to implement the form parsing myself, which is something I'll do in the short term, but long term I would prefer if WireMock.Net had support for this pretty common content type (afaik it is still the default solution when doing large file uploads with accompanying other data).
The text was updated successfully, but these errors were encountered: