support request content type and call address

This commit is contained in:
Asim Aslam
2018-04-17 12:12:51 +01:00
committed by Vasiliy Tolstov
parent 3d3d9bb1e7
commit 7e872d1275
3 changed files with 31 additions and 10 deletions

View File

@@ -18,6 +18,10 @@ func newHTTPRequest(service, method string, request interface{}, contentType str
o(&opts)
}
if len(opts.ContentType) > 0 {
contentType = opts.ContentType
}
return &httpRequest{
service: service,
method: method,