add encoding section
This commit is contained in:
parent
e9fc51e4da
commit
00d8e66cb7
@ -43,6 +43,8 @@ response := new(proto.Response)
|
|||||||
err := client.Call(context.TODO(), request, response)
|
err := client.Call(context.TODO(), request, response)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Look at http_test.go for detailed use.
|
||||||
|
|
||||||
### Encoding
|
### Encoding
|
||||||
|
|
||||||
Default protobuf with content-type application/proto
|
Default protobuf with content-type application/proto
|
||||||
@ -55,4 +57,3 @@ Json with content-type application/json
|
|||||||
client.NewJsonRequest("service", "/path", jsonRequest{})
|
client.NewJsonRequest("service", "/path", jsonRequest{})
|
||||||
```
|
```
|
||||||
|
|
||||||
Look at http_test.go for detailed use.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user