MCPcopy Create free account
hub / github.com/goadesign/goa / SkipResponseBodyEncodeDecode

Function SkipResponseBodyEncodeDecode

dsl/http.go:867–874  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

865// })
866// })
867func 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//

Callers 5

endpoint_dsls.goFile · 0.85
server_dsls.goFile · 0.85
openapi_dsls.goFile · 0.85
operations.goFile · 0.85

Calls 2

CurrentFunction · 0.92
IncompatibleDSLFunction · 0.92

Tested by

no test coverage detected