(meth *Method, path string)
| 277 | } |
| 278 | |
| 279 | func (r *Registry) newBody(meth *Method, path string) (*Body, error) { |
| 280 | switch path { |
| 281 | case "": |
| 282 | return nil, nil |
| 283 | case "*": |
| 284 | return &Body{FieldPath: nil}, nil |
| 285 | } |
| 286 | msg := meth.RequestType |
| 287 | fields, err := r.resolveFieldPath(msg, path, false) |
| 288 | if err != nil { |
| 289 | return nil, err |
| 290 | } |
| 291 | return &Body{FieldPath: FieldPath(fields)}, nil |
| 292 | } |
| 293 | |
| 294 | func (r *Registry) newResponse(meth *Method, path string) (*Body, error) { |
| 295 | msg := meth.ResponseType |
no test coverage detected