document how to pass payload from file, fixes #279#281
Open
domdorn wants to merge 1 commit intofullstorydev:masterfrom
Open
document how to pass payload from file, fixes #279#281domdorn wants to merge 1 commit intofullstorydev:masterfrom
domdorn wants to merge 1 commit intofullstorydev:masterfrom
Conversation
jhump
reviewed
Feb 27, 2022
| Sometimes it might be necessary to read the payload from a file. This worked for some users: | ||
|
|
||
| ```shell | ||
| grpcurl -d "$(cat my.json)" grpc.server.com:443 my.custom.server.Service/Method |
Contributor
There was a problem hiding this comment.
I think the more straight-forward way, that doesn't require this particular feature in your shell, is to use the @ value as the input, very much like the example above.
Suggested change
| grpcurl -d "$(cat my.json)" grpc.server.com:443 my.custom.server.Service/Method | |
| grpcurl -d @ grpc.server.com:443 my.custom.server.Service/Method < my.json |
| EOM | ||
| ``` | ||
|
|
||
| Sometimes it might be necessary to read the payload from a file. This worked for some users: |
Contributor
There was a problem hiding this comment.
"This worked for some users" -- this wording feels really non-committal. We can make it authoritative.
Suggested change
| Sometimes it might be necessary to read the payload from a file. This worked for some users: | |
| To use a file as the request payload, redirect the file to `grpcurl`'s stdin: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.