Add file based operator @
to insert value from files to request items
#23
Labels
Milestone
@
to insert value from files to request items
#23
The objective is to replicate this feature in HTTPie (https://httpie.io/docs/cli/file-based-separators).
The goal it is: instead of using a static string as the value for some header, you can use :@ operator to pass the desired value from a file.
Example, let's suppose I
cd
in a folder with a data.json file with content{ "email": "...", "password": "..." }
and a file "name.txt" with content as justThales
. You'll can...Additional Considerations:
This handler should live in input parsers to request data.
It must exist a function to receive input of "file path" and reader it, returning the String of content. This function would be called inside functions of parsers_request_items (that should pass to it the value they extracted from their input).
The text was updated successfully, but these errors were encountered: