SkipResponseBodyEncodeDecode prevents Goa from generating the response encoding (server) and decoding (client) code. Instead the service method returns a reader from which to stream the HTTP response body io. The client also gets access to a reader to stream the incoming response body. This makes it
()
| 865 | // }) |
| 866 | // }) |
| 867 | func SkipResponseBodyEncodeDecode() { |
| 868 | e, ok := eval.Current().(*expr.HTTPEndpointExpr) |
| 869 | if !ok { |
| 870 | eval.IncompatibleDSL() |
| 871 | return |
| 872 | } |
| 873 | e.SkipResponseBodyEncodeDecode = true |
| 874 | } |
| 875 | |
| 876 | // Body describes a HTTP request or response body. |
| 877 | // |
no test coverage detected