Skip to content

Commit

Permalink
Merge pull request #8 from vearne/dev
Browse files Browse the repository at this point in the history
update README.md
  • Loading branch information
vearne authored Oct 18, 2022
2 parents 4ab0a0e + 649489b commit 8bf9ad0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,26 @@ sudo -s
./grpcr --input-file-directory="/tmp/mycapture" --output-stdout --output-grpc="grpc://127.0.0.1:35002"
```

### 捕获的请求形如
```
{
"headers": {
":authority": "localhost:35001",
":method": "POST",
":path": "/SearchService/Search",
":scheme": "http",
"content-type": "application/grpc",
"te": "trailers",
"testkey1": "testvalue1",
"testkey2": "testvalue2",
"user-agent": "grpc-go/1.48.0"
},
"method": "/SearchService/Search",
"request": "{\"staffName\":\"zhangsan\",\"gender\":true,\"age\":405084}"
}
```


## 调试
设置日志级别
可选值: debug | info | warn | error
Expand Down
20 changes: 20 additions & 0 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,26 @@ and printed in the console
./grpcr --input-file-directory="/tmp/mycapture" --output-stdout --output-grpc="grpc://127.0.0.1:35002"
```

### The captured request looks like
```
{
"headers": {
":authority": "localhost:35001",
":method": "POST",
":path": "/SearchService/Search",
":scheme": "http",
"content-type": "application/grpc",
"te": "trailers",
"testkey1": "testvalue1",
"testkey2": "testvalue2",
"user-agent": "grpc-go/1.48.0"
},
"method": "/SearchService/Search",
"request": "{\"staffName\":\"zhangsan\",\"gender\":true,\"age\":405084}"
}
```


## Debug
Set the log level
Optional value: debug | info | warn | error
Expand Down

0 comments on commit 8bf9ad0

Please sign in to comment.