pact-net
pact-net copied to clipboard
Feat multipart file upload support
This PR aims to add partial support for Multipart/form-data requests to be added to the Pact File. It introduces a WithMultipartSingleFileUpload() method that allows the user to to specify a request of multipart/form-data in which a single part is uploaded, which is a file.
This functionality is a common use case and uses the underlying Rust FFI method designed for this express purpose. Note this update does not enable Pact-Net to fully support all types of multipart/form-data requests as it does not support requests with multiple parts included.
see issue: https://github.com/pact-foundation/pact-net/issues/410
TODO
- [x] Add documentation for the new method