pass body opion to http client
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -57,6 +57,7 @@ func (c *{{$ServiceName | lowerFirst}}Service) {{.Name}}(ctx context.Context, re | ||||
|     nopts := append(opts, | ||||
|       micro_client_http.Method("{{httpVerb .}}"),  | ||||
|       micro_client_http.Path("{{httpPath .}}"), | ||||
|       micro_client_http.Body("{{httpBody .}}"), | ||||
|       {{- if not (contains (json (openapiOption .)) "null") }} | ||||
|       {{- if (openapiOption .).Responses }} | ||||
|       micro_client_http.ErrorMap(errmap), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user