httpContext returns a context for attributes of types used to marshal and unmarshal HTTP requests and responses. pkg is the package name where the body type exists scope is the named scope request if true indicates that the type is a request type, else response type svr if true indicates that th
(scope *codegen.NameScope, request, svr bool)
| 2930 | // |
| 2931 | // svr if true indicates that the type is a server type, else client type |
| 2932 | func httpContext(scope *codegen.NameScope, request, svr bool) *codegen.AttributeContext { |
| 2933 | marshal := !request && svr || request && !svr |
| 2934 | return codegen.NewAttributeContext(!marshal, false, marshal, "", scope) |
| 2935 | } |
| 2936 | |
| 2937 | // serviceContext returns an attribute context for service types. |
| 2938 | func serviceContext(pkg string, scope *codegen.NameScope) *codegen.AttributeContext { |
no test coverage detected