Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http language: external body file #20

Open
sassman opened this issue Jan 7, 2023 · 0 comments
Open

http language: external body file #20

sassman opened this issue Jan 7, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@sassman
Copy link
Member

sassman commented Jan 7, 2023

Extension to the http language file format #5

A request body can be provided by referencing an external file.
The external file is provided by the < symbol in front of a valid absolute or relative file path. The whitespace between < and the file path is optional.

It is expected that the file is processed to replace all used variables as if they were specified inline.

Example

### Send POST request with json body
POST https://httpbin.org/post
Content-Type: application/json

< ./request-data.json
@sassman sassman added the enhancement New feature or request label Jan 7, 2023
@sassman sassman added this to the http language milestone Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant