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

Using files as request body #42

Closed
tpluscode opened this issue Jul 23, 2019 · 2 comments
Closed

Using files as request body #42

tpluscode opened this issue Jul 23, 2019 · 2 comments

Comments

@tpluscode
Copy link
Member

Expanding on #32, it should be possible to use a file as request body. For example, sending a pdf from filesystem

Invoke {
  // request
  Header Content-Type "application/pdf"
  
  >>> @test/sample-docs/abstract.pdf
} => {
  // response
}

Inspired by this feature of vuepress (except I reversed the <<< because I find it pointing in the wrong direction 😉)

@mchlrch
Copy link
Collaborator

mchlrch commented Jul 25, 2019

Maybe, the direction of <<< is also somewhat inspired by https://en.wikipedia.org/wiki/Here_document#Here_strings from the shell, denoting input

@tpluscode
Copy link
Member Author

Maybe, the direction of <<< is also somewhat inspired by https://en.wikipedia.org/wiki/Here_document#Here_strings from the shell, denoting input

Mhm all right. we could do the same way then

tpluscode added a commit that referenced this issue Jul 25, 2019
adds the possibility to set request headers and body

fix #32 fix #42
tpluscode added a commit that referenced this issue Jul 26, 2019
adds the possibility to set request headers and body

fix #32 fix #42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants