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

Function SkipRequestBodyEncodeDecode

dsl/http.go:831–838  ·  view source on GitHub ↗

SkipRequestBodyEncodeDecode prevents Goa from generating the request encoding (client) and decoding (server) code. Instead the service method gets direct access to the HTTP body reader. The client method provides a reader from which to stream the request body. This makes it possible to stream reques

()

Source from the content-addressed store, hash-verified

829// })
830// })
831func SkipRequestBodyEncodeDecode() {
832 e, ok := eval.Current().(*expr.HTTPEndpointExpr)
833 if !ok {
834 eval.IncompatibleDSL()
835 return
836 }
837 e.SkipRequestBodyEncodeDecode = true
838}
839
840// SkipResponseBodyEncodeDecode prevents Goa from generating the response
841// encoding (server) and decoding (client) code. Instead the service method

Callers 3

endpoint_dsls.goFile · 0.85
streaming_dsls.goFile · 0.85
security_dsls.goFile · 0.85

Calls 2

CurrentFunction · 0.92
IncompatibleDSLFunction · 0.92

Tested by

no test coverage detected