add encoding section

This commit is contained in:
Asim Aslam 2017-01-01 19:21:21 +00:00 committed by Vasiliy Tolstov
parent e9fc51e4da
commit 00d8e66cb7

View File

@ -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.