How about adding one more type parameter which stands for the request type, into GTransform?
I came up with this idea while thinking how to add request body logging easily.
I didn't split Request into RequestIn and RequestOut, because I think there would be no any need to transform the content of request itself. (But it could be an option, still.)
How about adding one more type parameter which stands for the request type, into
GTransform
? I came up with this idea while thinking how to add request body logging easily.Let's call this new trait
RTransform
.I didn't split
Request
intoRequestIn
andRequestOut
, because I think there would be no any need to transform the content of request itself. (But it could be an option, still.)And the result of codegen should be like below.