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

Support reading query param and header values from a file #288

Merged
merged 7 commits into from
Dec 30, 2022

Conversation

ducaale
Copy link
Owner

@ducaale ducaale commented Oct 8, 2022

This PR adds variants of : and == with @ postfix for reading values from a file.

# send a query param with a value read from temp.txt
$ xh httpbin.org/get test==@~/temp.txt

# send a header with a value read from temp.txt
$ xh httpbin.org/get x-api-key:@~/temp.txt

Also, see httpie/cli#1225.

Ticks another item from #4.

@ducaale ducaale force-pushed the header-and-querystring-from-file branch from 906bd70 to b551233 Compare October 8, 2022 23:40
@ducaale ducaale changed the base branch from develop to master November 7, 2022 18:28
@ducaale ducaale force-pushed the header-and-querystring-from-file branch from b551233 to 91d5ca4 Compare November 13, 2022 22:18
@ducaale ducaale mentioned this pull request Dec 24, 2022
28 tasks
@ducaale ducaale requested a review from blyxxyz December 29, 2022 12:10
Copy link
Collaborator

@blyxxyz blyxxyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great!

src/cli.rs Outdated Show resolved Hide resolved
@ducaale ducaale merged commit 555b318 into master Dec 30, 2022
@ducaale ducaale deleted the header-and-querystring-from-file branch December 30, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants