RequestObject defines the interface that all request types must implement.
| 38 | |
| 39 | // RequestObject defines the interface that all request types must implement. |
| 40 | type RequestObject interface { |
| 41 | // Bind binds query/path parameters to the struct. |
| 42 | Bind(*http.Request) error |
| 43 | // Validate validates the parameters. |
| 44 | Validate() error |
| 45 | } |
| 46 | |
| 47 | // shouldParseBody determines whether the incoming HTTP method |
| 48 | // is expected to carry a request body that should be parsed. |
no outgoing calls
no test coverage detected