Skip to content

Commit

Permalink
Switch README to buf curl (#474)
Browse files Browse the repository at this point in the history
Rather than using `grpcurl`, switch to @jhump's latest and greatest:
`buf curl`.
  • Loading branch information
akshayjshah authored Mar 14, 2023
1 parent c83da00 commit ff7073c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ curl \
Handlers and clients also support the gRPC and gRPC-Web protocols, including
streaming, headers, trailers, and error details. gRPC-compatible [server
reflection][] and [health checks][] are available as standalone packages.
Instead of cURL, we could call our API with `grpcurl`:
Instead of cURL, we could call our API with `buf curl`:

```
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
grpcurl \
-d '{"sentence": "I feel happy."}' \
demo.connectrpc.com:443 \
buf.connect.demo.eliza.v1.ElizaService/Say
go install github.com/bufbuild/buf/cmd/buf@latest
buf curl --protocol grpc \
--data '{"sentence": "I feel happy."}' \
https://demo.connectrpc.com/buf.connect.demo.eliza.v1.ElizaService/Say
```

Under the hood, Connect is just [Protocol Buffers][protobuf] and the standard
Expand Down

0 comments on commit ff7073c

Please sign in to comment.