PactSwift Example of a 'multipart/form-data;boundary=$someBoundary' #118
joleary1987
started this conversation in
General
Replies: 1 comment
-
Hi Jeff. Don't have anything that would share a file (yet). We might need to create a new interface for this in What do you think? Something like the following to prepare the Request part of the interaction: extension Interaction {
func withFileUpload(_ partName: String, fileName: String, contentType: String, data: Data) -> Self {
// ...
}
} Would need to extend it here somewhere -> PactSwift/Sources/Model/Interaction.swift Line 186 in cff1761 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I've been looking for an example of how to use PactSwift for a request that uses
multipart/form-data
for the request body and have come up short.Is there an example of how to write a PactSwift test for a
multipart/form-data;boundary=
request?Thank you!
Jeff
Beta Was this translation helpful? Give feedback.
All reactions