Question: How to handle Multipart/form requests?
Open
@surpher is already working on this.
Since Feb 4, 2025.
question
- Dominant language
- Swift
- Stars
- 56
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
❔ Question
So I have an API endpoint that accepts a Multipart/form-data as a Content-Type. How should I handle this in the tests? I don't see anything about the documentation. The only way I got it working was to specify "["Content-Type": "multipart/form-data"]" as the header in the mock service, but I couldn't figure out the body because at least for ours, it contains a JSON object and form-data. So right now, I can't verify the body :/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.