bruno
bruno copied to clipboard
Feature/add raw file request body option
Description
This PR adds the ability for a user to set a raw file as the request body. A user is able to select the option raw file and send a request this way. Raw file is stored as a string of the file path and fs library is used to get the file from the path then set it to the file.
Not added with this:
- Raw files in other collection types will still be imported with no body instead of the raw file request body
- Content-Type still needs to be manually set by the user. Functionality to set it based on the file extension has not been introduced.
Contribution Checklist:
- [x] The pull request only addresses one issue or adds one feature.
- [x] The pull request does not introduce any breaking changes
- [x] I have added screenshots or gifs to help explain the change if applicable.
- [x] I have read the contribution guidelines.
- [x] Create an issue and link to the pull request.
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.